Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001436/0.001436, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.947/1.947, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 96.36 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5101/0.5101, allocations: 43.55 MB / 362.7 MB, free: 51.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004635/0.0004631, allocations: 19.98 kB / 431.4 MB, free: 5.961 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1203, allocations: 58.85 MB / 490.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5374/0.6577, allocations: 92.88 MB / 0.5694 GB, free: 9.699 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003149/0.6581, allocations: 67.97 kB / 0.5695 GB, free: 9.633 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07177/0.7299, allocations: 12.85 MB / 0.582 GB, free: 12.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.73, allocations: 0 / 0.582 GB, free: 12.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.442e-05/0.73, allocations: 12 kB / 0.5821 GB, free: 12.8 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002776/0.7328, allocations: 0.9155 MB / 0.583 GB, free: 11.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.7329, allocations: 8.031 kB / 0.583 GB, free: 11.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/0.7332, allocations: 82.52 kB / 0.583 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.7343, allocations: 406.1 kB / 0.5834 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.047e-05/0.7344, allocations: 37 kB / 0.5835 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.7345, allocations: 40 kB / 0.5835 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.736, allocations: 475.7 kB / 0.584 GB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.7361, allocations: 0 / 0.584 GB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.7362, allocations: 16 kB / 0.584 GB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.7362, allocations: 13.03 kB / 0.584 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.7376, allocations: 339.8 kB / 0.5843 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003726/0.7413, allocations: 1.13 MB / 0.5854 GB, free: 9.199 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.7438, allocations: 0.51 MB / 0.5859 GB, free: 8.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.234e-05/0.7439, allocations: 8.422 kB / 0.5859 GB, free: 8.672 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.745, allocations: 293.3 kB / 0.5862 GB, free: 8.379 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 3.306e-06/0.745, allocations: 0 / 0.5862 GB, free: 8.379 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.002726/0.7477, allocations: 0.6506 MB / 0.5868 GB, free: 7.719 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.7479, allocations: 140.9 kB / 0.587 GB, free: 7.551 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.7489, allocations: 480.8 kB / 0.5874 GB, free: 7.074 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.749, allocations: 45.7 kB / 0.5875 GB, free: 7.023 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.7493, allocations: 279.8 kB / 0.5877 GB, free: 6.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.7495, allocations: 118.5 kB / 0.5878 GB, free: 6.633 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.7495, allocations: 8 kB / 0.5879 GB, free: 6.625 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.7497, allocations: 330.8 kB / 0.5882 GB, free: 6.293 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007561/0.7505, allocations: 181 kB / 0.5883 GB, free: 6.117 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008759/0.7514, allocations: 272.9 kB / 0.5886 GB, free: 5.824 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006678/0.7521, allocations: 150.2 kB / 0.5887 GB, free: 5.684 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.433e-06/0.7521, allocations: 7.938 kB / 0.5888 GB, free: 5.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001676/0.7538, allocations: 482.7 kB / 0.5892 GB, free: 5.195 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.7538, allocations: 4 kB / 0.5892 GB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.7538, allocations: 0 / 0.5892 GB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.7539, allocations: 4 kB / 0.5892 GB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005403/0.7544, allocations: 67.84 kB / 0.5893 GB, free: 5.121 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.7545, allocations: 4 kB / 0.5893 GB, free: 5.117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000783/0.7552, allocations: 83.78 kB / 0.5894 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.7553, allocations: 16 kB / 0.5894 GB, free: 5.02 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004681/0.7558, allocations: 235 kB / 0.5896 GB, free: 4.781 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.756, allocations: 47.44 kB / 0.5897 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.7579, allocations: 0.521 MB / 0.5902 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.758, allocations: 8 kB / 0.5902 GB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.758, allocations: 3.953 kB / 0.5902 GB, free: 4.199 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.758, allocations: 3.984 kB / 0.5902 GB, free: 4.195 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003303/0.7613, allocations: 1.15 MB / 0.5913 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.7614, allocations: 0 / 0.5913 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/0.7618, allocations: 43.91 kB / 0.5913 GB, free: 2.945 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.317e-05/0.7618, allocations: 4 kB / 0.5913 GB, free: 2.941 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-05/0.7619, allocations: 19.94 kB / 0.5914 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.7619, allocations: 4 kB / 0.5914 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7619, allocations: 3.938 kB / 0.5914 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.7639, allocations: 0.5815 MB / 0.5919 GB, free: 2.312 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.7641, allocations: 140.4 kB / 0.5921 GB, free: 2.156 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.7643, allocations: 19.94 kB / 0.5921 GB, free: 2.137 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007063/0.765, allocations: 75.89 kB / 0.5922 GB, free: 2.062 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.7653, allocations: 76.31 kB / 0.5922 GB, free: 1.988 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.735e-05/0.7654, allocations: 15.98 kB / 0.5923 GB, free: 1.973 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007176/0.7661, allocations: 351.1 kB / 0.5926 GB, free: 1.629 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7661, allocations: 8 kB / 0.5926 GB, free: 1.621 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007413/0.7669, allocations: 131.8 kB / 0.5927 GB, free: 1.492 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001422/0.7683, allocations: 462.3 kB / 0.5932 GB, free: 1.133 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.7703, allocations: 465.6 kB / 0.5936 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.7703, allocations: 3.938 kB / 0.5936 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000967/0.7713, allocations: 254.5 kB / 0.5939 GB, free: 440 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007975/0.7721, allocations: 73.5 kB / 0.5939 GB, free: 368 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.7748, allocations: 1.067 MB / 0.595 GB, free: 15.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006344/0.7754, allocations: 0.8802 MB / 0.5958 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003743/0.7758, allocations: 51.42 kB / 0.5959 GB, free: 14.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.793e-06/0.7759, allocations: 4 kB / 0.5959 GB, free: 14.3 MB / 426.7 MB Notification: Performance of Templates: time 0.0176/0.7935, allocations: 7.125 MB / 0.6028 GB, free: 7.18 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches