Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009289/0.0009291, allocations: 178.4 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008761/0.0008763, allocations: 86.19 kB / 292.1 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3199/0.3199, allocations: 44.21 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003231/0.0003231, allocations: 8 kB / 459.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3405, allocations: 61.9 MB / 0.5096 GB, free: 38.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.4468, allocations: 94.38 MB / 0.6017 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.447, allocations: 71.97 kB / 0.6018 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03624/0.4833, allocations: 13.08 MB / 0.6146 GB, free: 3.598 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4833, allocations: 4 kB / 0.6146 GB, free: 3.594 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.784e-05/0.4834, allocations: 12 kB / 0.6146 GB, free: 3.582 MB / 426.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.001815/0.4852, allocations: 0.9271 MB / 0.6155 GB, free: 2.586 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.4853, allocations: 8.031 kB / 0.6155 GB, free: 2.578 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.4855, allocations: 71.23 kB / 0.6156 GB, free: 2.508 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007778/0.4863, allocations: 413.9 kB / 0.616 GB, free: 2.062 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/0.4863, allocations: 36.95 kB / 0.616 GB, free: 2.027 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/0.4864, allocations: 48 kB / 0.616 GB, free: 1.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008547/0.4872, allocations: 467.7 kB / 0.6165 GB, free: 1.504 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.4873, allocations: 0 / 0.6165 GB, free: 1.504 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.4873, allocations: 16 kB / 0.6165 GB, free: 1.488 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.4873, allocations: 8 kB / 0.6165 GB, free: 1.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000767/0.4881, allocations: 347.8 kB / 0.6168 GB, free: 1.141 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00204/0.4902, allocations: 1.126 MB / 0.6179 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.4914, allocations: 0.5023 MB / 0.6184 GB, free: 15.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.4914, allocations: 8.438 kB / 0.6184 GB, free: 15.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006158/0.492, allocations: 297.2 kB / 0.6187 GB, free: 15.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 3.877e-06/0.4921, allocations: 0 / 0.6187 GB, free: 15.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001465/0.4935, allocations: 0.6506 MB / 0.6194 GB, free: 14.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.5e-05/0.4936, allocations: 140.9 kB / 0.6195 GB, free: 14.31 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006639/0.4943, allocations: 472.8 kB / 0.6199 GB, free: 13.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.325e-05/0.4944, allocations: 49.7 kB / 0.62 GB, free: 13.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002288/0.4946, allocations: 249.4 kB / 0.6202 GB, free: 13.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.4948, allocations: 118.5 kB / 0.6203 GB, free: 13.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.4948, allocations: 8 kB / 0.6203 GB, free: 13.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.495, allocations: 374.7 kB / 0.6207 GB, free: 13.04 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.4955, allocations: 181 kB / 0.6209 GB, free: 12.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.496, allocations: 268.9 kB / 0.6211 GB, free: 12.58 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/0.4964, allocations: 154.1 kB / 0.6213 GB, free: 12.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.4964, allocations: 0 / 0.6213 GB, free: 12.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001011/0.4974, allocations: 0.4906 MB / 0.6218 GB, free: 11.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.4974, allocations: 4 kB / 0.6218 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4974, allocations: 0 / 0.6218 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.4975, allocations: 4.062 kB / 0.6218 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.4978, allocations: 71.83 kB / 0.6218 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.4978, allocations: 4 kB / 0.6218 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004079/0.4982, allocations: 83.78 kB / 0.6219 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.4983, allocations: 20 kB / 0.6219 GB, free: 11.75 MB / 442.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.0002862/0.4985, allocations: 227.4 kB / 0.6222 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-05/0.4986, allocations: 51.34 kB / 0.6222 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.4997, allocations: 0.521 MB / 0.6227 GB, free: 10.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.4997, allocations: 8 kB / 0.6227 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4998, allocations: 0 / 0.6227 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.4998, allocations: 3.984 kB / 0.6227 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.5016, allocations: 1.15 MB / 0.6238 GB, free: 9.723 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.5017, allocations: 0 / 0.6238 GB, free: 9.723 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.5018, allocations: 43.84 kB / 0.6239 GB, free: 9.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.5019, allocations: 4 kB / 0.6239 GB, free: 9.676 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.5019, allocations: 15.98 kB / 0.6239 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5019, allocations: 0 / 0.6239 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.5019, allocations: 3.984 kB / 0.6239 GB, free: 9.656 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.5029, allocations: 0.5932 MB / 0.6245 GB, free: 9.043 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.5031, allocations: 144.4 kB / 0.6246 GB, free: 8.883 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.5032, allocations: 19.94 kB / 0.6246 GB, free: 8.863 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003767/0.5036, allocations: 71.94 kB / 0.6247 GB, free: 8.793 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.5037, allocations: 72.31 kB / 0.6248 GB, free: 8.723 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.496e-05/0.5038, allocations: 19.98 kB / 0.6248 GB, free: 8.703 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000403/0.5042, allocations: 351.1 kB / 0.6251 GB, free: 8.359 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5042, allocations: 0 / 0.6251 GB, free: 8.359 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00047/0.5047, allocations: 131.8 kB / 0.6253 GB, free: 8.23 MB / 442.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.0009649/0.5057, allocations: 478.6 kB / 0.6257 GB, free: 7.918 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.5067, allocations: 465.6 kB / 0.6262 GB, free: 7.465 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5067, allocations: 3.938 kB / 0.6262 GB, free: 7.461 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004997/0.5072, allocations: 250.5 kB / 0.6264 GB, free: 7.219 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.5078, allocations: 78.59 kB / 0.6265 GB, free: 7.145 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.5095, allocations: 1.025 MB / 0.6275 GB, free: 6.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004983/0.5101, allocations: 0.8802 MB / 0.6283 GB, free: 5.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002856/0.5104, allocations: 75.42 kB / 0.6284 GB, free: 5.105 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.5105, allocations: 47.41 kB / 0.6285 GB, free: 5.059 MB / 442.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5105, allocations: 0 / 0.6285 GB, free: 5.059 MB / 442.7 MB Notification: Performance of Templates: time 0.01047/0.521, allocations: 6.377 MB / 0.6347 GB, free: 14.73 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches