Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002296/0.002296, allocations: 170.1 kB / 8.146 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.749/1.749, allocations: 205.2 MB / 213.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001298/0.001298, allocations: 95.55 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2639/0.2639, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.588e-06/9.749e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2819, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.4423, allocations: 92.07 MB / 0.5553 GB, free: 7.023 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.4426, allocations: 59.98 kB / 0.5553 GB, free: 6.965 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05902/0.5017, allocations: 12.35 MB / 0.5674 GB, free: 10.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.338e-05/0.5018, allocations: 15.94 kB / 0.5674 GB, free: 10.58 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.00238/0.5042, allocations: 0.8569 MB / 0.5682 GB, free: 9.656 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.5042, allocations: 8.031 kB / 0.5683 GB, free: 9.648 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/0.5044, allocations: 67.25 kB / 0.5683 GB, free: 9.582 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.5055, allocations: 418 kB / 0.5687 GB, free: 9.133 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.744e-05/0.5056, allocations: 16 kB / 0.5687 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-05/0.5057, allocations: 28 kB / 0.5688 GB, free: 9.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008701/0.5065, allocations: 257.8 kB / 0.569 GB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009643/0.5075, allocations: 365.9 kB / 0.5694 GB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.5076, allocations: 0 / 0.5694 GB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.577e-05/0.5076, allocations: 7.984 kB / 0.5694 GB, free: 8.453 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.5077, allocations: 12 kB / 0.5694 GB, free: 8.441 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.511, allocations: 1.058 MB / 0.5704 GB, free: 7.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008713/0.5119, allocations: 320 kB / 0.5707 GB, free: 7.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.5123, allocations: 146.2 kB / 0.5709 GB, free: 6.875 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.162e-05/0.5124, allocations: 16.36 kB / 0.5709 GB, free: 6.859 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006076/0.513, allocations: 245.5 kB / 0.5711 GB, free: 6.609 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 3.216e-06/0.513, allocations: 0 / 0.5711 GB, free: 6.609 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.001042/0.5141, allocations: 334.7 kB / 0.5714 GB, free: 6.273 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.5142, allocations: 140.9 kB / 0.5716 GB, free: 6.105 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000931/0.5151, allocations: 452.9 kB / 0.572 GB, free: 5.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.777e-05/0.5152, allocations: 37.7 kB / 0.572 GB, free: 5.617 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.5154, allocations: 215.8 kB / 0.5722 GB, free: 5.402 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.5156, allocations: 118.5 kB / 0.5723 GB, free: 5.285 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/0.5156, allocations: 0 / 0.5723 GB, free: 5.285 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.5158, allocations: 330.8 kB / 0.5727 GB, free: 4.953 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004283/0.5162, allocations: 129.3 kB / 0.5728 GB, free: 4.828 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005411/0.5168, allocations: 228.7 kB / 0.573 GB, free: 4.578 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003581/0.5172, allocations: 107.2 kB / 0.5731 GB, free: 4.473 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5172, allocations: 0 / 0.5731 GB, free: 4.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001424/0.5186, allocations: 412.6 kB / 0.5735 GB, free: 4.059 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.5187, allocations: 11.94 kB / 0.5735 GB, free: 4.047 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.5187, allocations: 3.984 kB / 0.5735 GB, free: 4.043 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001855/0.5189, allocations: 28.86 kB / 0.5735 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004937/0.5194, allocations: 67.83 kB / 0.5736 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.5209, allocations: 1.333 MB / 0.5749 GB, free: 2.496 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006975/0.5216, allocations: 79.98 kB / 0.575 GB, free: 2.418 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-05/0.5217, allocations: 19.98 kB / 0.575 GB, free: 2.398 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001985/0.5219, allocations: 66.83 kB / 0.5751 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.5221, allocations: 51.34 kB / 0.5751 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.5232, allocations: 388.5 kB / 0.5755 GB, free: 1.891 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.5233, allocations: 4 kB / 0.5755 GB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5233, allocations: 0 / 0.5755 GB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.5233, allocations: 3.984 kB / 0.5755 GB, free: 1.883 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.5256, allocations: 0.9352 MB / 0.5764 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.5256, allocations: 0 / 0.5764 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.526, allocations: 47.91 kB / 0.5764 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/0.526, allocations: 4 kB / 0.5765 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-05/0.5261, allocations: 15.91 kB / 0.5765 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.5261, allocations: 0 / 0.5765 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.5261, allocations: 0 / 0.5765 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001036/0.5272, allocations: 462.6 kB / 0.5769 GB, free: 376 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.5274, allocations: 144.4 kB / 0.577 GB, free: 212 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.5275, allocations: 8 kB / 0.5771 GB, free: 204 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007898/0.5283, allocations: 71.92 kB / 0.5771 GB, free: 132 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.5286, allocations: 64.33 kB / 0.5772 GB, free: 68 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.159e-05/0.5287, allocations: 19.98 kB / 0.5772 GB, free: 48 kB / 410.7 MB Notification: Performance of sort global known variables: time 0.0006436/0.5293, allocations: 339.1 kB / 0.5775 GB, free: 15.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006982/0.53, allocations: 115.8 kB / 0.5776 GB, free: 15.61 MB / 426.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) * 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.001029/0.5311, allocations: 354.5 kB / 0.578 GB, free: 15.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.5323, allocations: 474 kB / 0.5784 GB, free: 14.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5323, allocations: 0 / 0.5784 GB, free: 14.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005197/0.5329, allocations: 193.6 kB / 0.5786 GB, free: 14.63 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007521/0.5336, allocations: 68.58 kB / 0.5787 GB, free: 14.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.5359, allocations: 0.7109 MB / 0.5794 GB, free: 13.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009324/0.5368, allocations: 0.9298 MB / 0.5803 GB, free: 12.86 MB / 426.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5368, allocations: 4 kB / 0.5803 GB, free: 12.86 MB / 426.7 MB Notification: Performance of Templates: time 0.01826/0.5551, allocations: 8.131 MB / 0.5882 GB, free: 4.727 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/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_cpp_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches