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") [: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 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 182.9 kB / 8.52 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 221.4 MB / 230.3 MB, free: 7.645 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009421/0.0009421, allocations: 83.17 kB / 281.2 MB, free: 5.449 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.1959/0.1959, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.576e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1256, allocations: 61.91 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3709/0.4965, allocations: 93.57 MB / 0.5855 GB, free: 3.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.4968, allocations: 67.97 kB / 0.5855 GB, free: 3.164 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03524/0.532, allocations: 12.6 MB / 0.5978 GB, free: 6.555 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.138e-05/0.5321, allocations: 16 kB / 0.5978 GB, free: 6.539 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.001507/0.5336, allocations: 0.8647 MB / 0.5987 GB, free: 5.609 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.5337, allocations: 11.97 kB / 0.5987 GB, free: 5.598 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.5338, allocations: 63.25 kB / 0.5988 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006887/0.5345, allocations: 414 kB / 0.5992 GB, free: 5.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.5346, allocations: 15.94 kB / 0.5992 GB, free: 5.074 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.246e-05/0.5346, allocations: 32 kB / 0.5992 GB, free: 5.043 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005092/0.5352, allocations: 249.9 kB / 0.5994 GB, free: 4.801 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006038/0.5358, allocations: 369.8 kB / 0.5998 GB, free: 4.422 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.5358, allocations: 0 / 0.5998 GB, free: 4.422 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.5358, allocations: 7.969 kB / 0.5998 GB, free: 4.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.5359, allocations: 15.98 kB / 0.5998 GB, free: 4.398 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.5378, allocations: 1.046 MB / 0.6008 GB, free: 3.309 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004971/0.5383, allocations: 328.9 kB / 0.6011 GB, free: 2.977 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/0.5386, allocations: 150.1 kB / 0.6013 GB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.5386, allocations: 4.438 kB / 0.6013 GB, free: 2.824 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003628/0.539, allocations: 236.4 kB / 0.6015 GB, free: 2.578 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.585e-06/0.539, allocations: 0 / 0.6015 GB, free: 2.578 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006268/0.5397, allocations: 342.7 kB / 0.6018 GB, free: 2.238 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.5397, allocations: 140.9 kB / 0.602 GB, free: 2.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005155/0.5403, allocations: 452.9 kB / 0.6024 GB, free: 1.625 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.5403, allocations: 33.7 kB / 0.6024 GB, free: 1.586 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.5404, allocations: 185.4 kB / 0.6026 GB, free: 1.398 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.5406, allocations: 110.5 kB / 0.6027 GB, free: 1.289 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.5406, allocations: 7.938 kB / 0.6027 GB, free: 1.281 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5407, allocations: 362.8 kB / 0.6031 GB, free: 0.918 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/0.541, allocations: 141.2 kB / 0.6032 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.5413, allocations: 228.7 kB / 0.6034 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.5415, allocations: 107.2 kB / 0.6035 GB, free: 440 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.5415, allocations: 4 kB / 0.6035 GB, free: 436 kB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.000889/0.5424, allocations: 440.2 kB / 0.604 GB, free: 15.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.5424, allocations: 5.094 kB / 0.604 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.5424, allocations: 8.047 kB / 0.604 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/0.5426, allocations: 36.69 kB / 0.604 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.5429, allocations: 63.83 kB / 0.6041 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.544, allocations: 1.334 MB / 0.6054 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004343/0.5445, allocations: 87.78 kB / 0.6055 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.5445, allocations: 16 kB / 0.6055 GB, free: 14.32 MB / 426.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.0001622/0.5447, allocations: 144.5 kB / 0.6056 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/0.5448, allocations: 51.34 kB / 0.6057 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000666/0.5454, allocations: 384.5 kB / 0.606 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.5455, allocations: 4 kB / 0.606 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.5455, allocations: 0 / 0.606 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.5455, allocations: 3.984 kB / 0.606 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.5469, allocations: 0.9391 MB / 0.6069 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5469, allocations: 0 / 0.6069 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.5471, allocations: 47.91 kB / 0.607 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.5471, allocations: 4 kB / 0.607 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.5471, allocations: 11.98 kB / 0.607 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.5472, allocations: 3.984 kB / 0.607 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5472, allocations: 0 / 0.607 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005622/0.5477, allocations: 458.6 kB / 0.6074 GB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.5479, allocations: 140.4 kB / 0.6076 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.975e-05/0.548, allocations: 11.98 kB / 0.6076 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004076/0.5484, allocations: 71.94 kB / 0.6077 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.5486, allocations: 72.31 kB / 0.6077 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-05/0.5486, allocations: 16 kB / 0.6077 GB, free: 11.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003551/0.549, allocations: 331.2 kB / 0.6081 GB, free: 11.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005147/0.5495, allocations: 119.8 kB / 0.6082 GB, free: 11.46 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.0007271/0.5502, allocations: 344.8 kB / 0.6085 GB, free: 11.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000731/0.551, allocations: 474 kB / 0.609 GB, free: 10.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.551, allocations: 0 / 0.609 GB, free: 10.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.5513, allocations: 201.5 kB / 0.6092 GB, free: 10.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.5518, allocations: 67.38 kB / 0.6092 GB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.5531, allocations: 0.6702 MB / 0.6099 GB, free: 9.762 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005673/0.5537, allocations: 0.93 MB / 0.6108 GB, free: 8.801 MB / 426.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5537, allocations: 0 / 0.6108 GB, free: 8.801 MB / 426.7 MB Notification: Performance of Templates: time 0.01288/0.5666, allocations: 6.767 MB / 0.6174 GB, free: 2.066 MB / 426.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