Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001052/0.001052, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.456/1.456, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001152/0.001152, allocations: 90.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2272/0.2272, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003946, allocations: 8 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1351, allocations: 58.86 MB / 490.2 MB, free: 8.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4273/0.5625, allocations: 92.89 MB / 0.5695 GB, free: 7.004 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/0.5627, allocations: 68.03 kB / 0.5695 GB, free: 6.969 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03515/0.5979, allocations: 12.84 MB / 0.5821 GB, free: 12.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5979, allocations: 0 / 0.5821 GB, free: 12.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.076e-05/0.598, allocations: 12 kB / 0.5821 GB, free: 12.03 MB / 394.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.001672/0.5997, allocations: 0.9223 MB / 0.583 GB, free: 11.08 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.5997, allocations: 8.031 kB / 0.583 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.5998, allocations: 67.16 kB / 0.583 GB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006875/0.6005, allocations: 422.8 kB / 0.5834 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.6006, allocations: 36.31 kB / 0.5835 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.203e-05/0.6007, allocations: 46.62 kB / 0.5835 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008608/0.6015, allocations: 462.7 kB / 0.584 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.6016, allocations: 7.938 kB / 0.584 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.583e-05/0.6016, allocations: 19.48 kB / 0.584 GB, free: 10.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.6017, allocations: 8 kB / 0.584 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007457/0.6024, allocations: 338 kB / 0.5843 GB, free: 9.938 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002136/0.6046, allocations: 1.135 MB / 0.5854 GB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.6057, allocations: 0.5105 MB / 0.5859 GB, free: 8.605 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.6058, allocations: 4.438 kB / 0.5859 GB, free: 8.602 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005931/0.6064, allocations: 297.8 kB / 0.5862 GB, free: 8.367 MB / 394.7 MB Notification: Performance of pre-optimization done (n=52): time 2.384e-06/0.6064, allocations: 0 / 0.5862 GB, free: 8.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.001496/0.6079, allocations: 0.6468 MB / 0.5869 GB, free: 7.859 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.832e-05/0.608, allocations: 140.3 kB / 0.587 GB, free: 7.695 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005829/0.6086, allocations: 481.2 kB / 0.5874 GB, free: 7.324 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.857e-05/0.6086, allocations: 44.27 kB / 0.5875 GB, free: 7.285 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.6088, allocations: 249.7 kB / 0.5877 GB, free: 7.121 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.6089, allocations: 118.9 kB / 0.5878 GB, free: 7.023 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.293e-05/0.609, allocations: 6.562 kB / 0.5878 GB, free: 7.023 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.6091, allocations: 370.5 kB / 0.5882 GB, free: 6.676 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000386/0.6095, allocations: 173.5 kB / 0.5884 GB, free: 6.559 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004601/0.61, allocations: 270.4 kB / 0.5886 GB, free: 6.336 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003601/0.6104, allocations: 155.3 kB / 0.5888 GB, free: 6.238 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.6104, allocations: 0 / 0.5888 GB, free: 6.238 MB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009873/0.6114, allocations: 0.4917 MB / 0.5892 GB, free: 5.852 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.6114, allocations: 11.94 kB / 0.5893 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.6114, allocations: 3.938 kB / 0.5893 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.6115, allocations: 4 kB / 0.5893 GB, free: 5.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.6118, allocations: 71.09 kB / 0.5893 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.6118, allocations: 8 kB / 0.5893 GB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.6122, allocations: 85.91 kB / 0.5894 GB, free: 5.684 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.6122, allocations: 15.69 kB / 0.5894 GB, free: 5.672 MB / 394.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.0002799/0.6125, allocations: 223 kB / 0.5897 GB, free: 5.488 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.642e-05/0.6126, allocations: 51.34 kB / 0.5897 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.6136, allocations: 0.5238 MB / 0.5902 GB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.6137, allocations: 4 kB / 0.5902 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.6137, allocations: 7.953 kB / 0.5902 GB, free: 5.043 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.6137, allocations: 3.984 kB / 0.5902 GB, free: 5.039 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.6155, allocations: 1.141 MB / 0.5913 GB, free: 4.098 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.6155, allocations: 4 kB / 0.5913 GB, free: 4.094 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.6157, allocations: 43.72 kB / 0.5914 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.6157, allocations: 4 kB / 0.5914 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.878e-05/0.6158, allocations: 22.67 kB / 0.5914 GB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.6158, allocations: 4 kB / 0.5914 GB, free: 4.031 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.6158, allocations: 0 / 0.5914 GB, free: 4.031 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009698/0.6167, allocations: 0.5907 MB / 0.592 GB, free: 3.531 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.6169, allocations: 135.4 kB / 0.5921 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.939e-05/0.617, allocations: 14.25 kB / 0.5921 GB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.6174, allocations: 79.2 kB / 0.5922 GB, free: 3.312 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.6175, allocations: 74.31 kB / 0.5923 GB, free: 3.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/0.6176, allocations: 23.42 kB / 0.5923 GB, free: 3.234 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004008/0.618, allocations: 353.9 kB / 0.5926 GB, free: 2.969 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.618, allocations: 0 / 0.5926 GB, free: 2.969 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004876/0.6185, allocations: 128.3 kB / 0.5928 GB, free: 2.859 MB / 394.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.001066/0.6196, allocations: 472.4 kB / 0.5932 GB, free: 2.465 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.6206, allocations: 467.2 kB / 0.5937 GB, free: 2.125 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6206, allocations: 4.125 kB / 0.5937 GB, free: 2.121 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004662/0.6211, allocations: 247.1 kB / 0.5939 GB, free: 1.941 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.6215, allocations: 79.5 kB / 0.594 GB, free: 1.887 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.6232, allocations: 1.032 MB / 0.595 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.6236, allocations: 0.8812 MB / 0.5958 GB, free: 32 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002684/0.6239, allocations: 71.41 kB / 0.5959 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.6241, allocations: 50.73 kB / 0.596 GB, free: 15.91 MB / 410.7 MB Notification: Performance of SimCode: time 4.8e-07/0.6241, allocations: 0 / 0.596 GB, free: 15.91 MB / 410.7 MB Notification: Performance of Templates: time 0.01213/0.6362, allocations: 6.355 MB / 0.6022 GB, free: 9.566 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches