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") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009099/0.0009099, allocations: 191.1 kB / 7.807 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.029/1.029, allocations: 205.2 MB / 213.4 MB, free: 13.9 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.0008017/0.0008017, allocations: 88.28 kB / 261.4 MB, free: 13.61 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.163/0.163, allocations: 43.48 MB / 352.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.432e-06/6.452e-06, allocations: 0 / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2275, allocations: 58.85 MB / 476.6 MB, free: 5.191 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3329, allocations: 92.06 MB / 0.5553 GB, free: 6.863 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001716/0.3331, allocations: 63.97 kB / 0.5553 GB, free: 6.801 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03191/0.365, allocations: 12.35 MB / 0.5674 GB, free: 10.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.446e-05/0.365, allocations: 15.94 kB / 0.5674 GB, free: 10.42 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.001367/0.3664, allocations: 0.8569 MB / 0.5683 GB, free: 9.496 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3665, allocations: 15.97 kB / 0.5683 GB, free: 9.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.3666, allocations: 63.25 kB / 0.5683 GB, free: 9.418 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006798/0.3673, allocations: 418 kB / 0.5687 GB, free: 8.969 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/0.3673, allocations: 16 kB / 0.5687 GB, free: 8.953 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.189e-05/0.3674, allocations: 28 kB / 0.5688 GB, free: 8.926 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004607/0.3679, allocations: 261.8 kB / 0.569 GB, free: 8.672 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005634/0.3684, allocations: 361.9 kB / 0.5694 GB, free: 8.297 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3685, allocations: 0 / 0.5694 GB, free: 8.297 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.3685, allocations: 7.984 kB / 0.5694 GB, free: 8.289 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.3685, allocations: 12 kB / 0.5694 GB, free: 8.277 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.3704, allocations: 1.054 MB / 0.5704 GB, free: 7.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004948/0.3709, allocations: 330.2 kB / 0.5707 GB, free: 6.848 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.3711, allocations: 146.2 kB / 0.5709 GB, free: 6.703 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.3711, allocations: 4.438 kB / 0.5709 GB, free: 6.699 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003493/0.3715, allocations: 245.5 kB / 0.5711 GB, free: 6.449 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 1.763e-06/0.3715, allocations: 3.938 kB / 0.5711 GB, free: 6.445 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005949/0.3721, allocations: 338.7 kB / 0.5714 GB, free: 6.105 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/0.3722, allocations: 136.9 kB / 0.5716 GB, free: 5.941 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.3727, allocations: 452.9 kB / 0.572 GB, free: 5.496 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.3727, allocations: 33.7 kB / 0.572 GB, free: 5.457 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.3728, allocations: 189.3 kB / 0.5722 GB, free: 5.266 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.373, allocations: 110.5 kB / 0.5723 GB, free: 5.156 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.373, allocations: 0 / 0.5723 GB, free: 5.156 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3731, allocations: 370.8 kB / 0.5727 GB, free: 4.785 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.3734, allocations: 133.3 kB / 0.5728 GB, free: 4.656 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.3737, allocations: 220.7 kB / 0.573 GB, free: 4.414 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.3739, allocations: 115.1 kB / 0.5731 GB, free: 4.301 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3739, allocations: 0 / 0.5731 GB, free: 4.301 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008015/0.3747, allocations: 436.2 kB / 0.5735 GB, free: 3.863 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.3747, allocations: 15.92 kB / 0.5736 GB, free: 3.848 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3747, allocations: 3.906 kB / 0.5736 GB, free: 3.844 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001425/0.3749, allocations: 32.86 kB / 0.5736 GB, free: 3.809 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.3751, allocations: 59.89 kB / 0.5736 GB, free: 3.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009769/0.3761, allocations: 1.345 MB / 0.575 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.3765, allocations: 75.98 kB / 0.575 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.3766, allocations: 16 kB / 0.575 GB, free: 2.199 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.0001381/0.3767, allocations: 145.5 kB / 0.5752 GB, free: 2.051 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.476e-05/0.3768, allocations: 51.34 kB / 0.5752 GB, free: 2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006015/0.3774, allocations: 376.5 kB / 0.5756 GB, free: 1.629 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.3774, allocations: 8 kB / 0.5756 GB, free: 1.621 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.3774, allocations: 0 / 0.5756 GB, free: 1.621 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3774, allocations: 4.047 kB / 0.5756 GB, free: 1.617 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.3787, allocations: 0.943 MB / 0.5765 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3787, allocations: 0 / 0.5765 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.3789, allocations: 51.91 kB / 0.5766 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.379, allocations: 4 kB / 0.5766 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.379, allocations: 3.984 kB / 0.5766 GB, free: 0.5703 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.379, allocations: 4 kB / 0.5766 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.379, allocations: 0 / 0.5766 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005464/0.3796, allocations: 462.5 kB / 0.577 GB, free: 76 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.3797, allocations: 140.4 kB / 0.5772 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.353e-05/0.3798, allocations: 15.98 kB / 0.5772 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.3802, allocations: 71.94 kB / 0.5772 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.3803, allocations: 72.3 kB / 0.5773 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.3804, allocations: 16 kB / 0.5773 GB, free: 15.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003328/0.3807, allocations: 335.2 kB / 0.5776 GB, free: 15.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000452/0.3812, allocations: 115.8 kB / 0.5778 GB, free: 15.31 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.0006886/0.3819, allocations: 360.9 kB / 0.5781 GB, free: 14.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006837/0.3826, allocations: 466 kB / 0.5785 GB, free: 14.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3826, allocations: 0 / 0.5785 GB, free: 14.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.3829, allocations: 197.6 kB / 0.5787 GB, free: 14.33 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.3833, allocations: 72.3 kB / 0.5788 GB, free: 14.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.3845, allocations: 0.6859 MB / 0.5795 GB, free: 13.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005573/0.3851, allocations: 0.9259 MB / 0.5804 GB, free: 12.6 MB / 426.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3851, allocations: 4 kB / 0.5804 GB, free: 12.59 MB / 426.7 MB Notification: Performance of Templates: time 0.01096/0.3961, allocations: 6.755 MB / 0.587 GB, free: 5.836 MB / 426.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