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.001354/0.001354, allocations: 180 kB / 14.15 MB, free: 1.176 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.356/1.356, allocations: 221.3 MB / 236 MB, free: 2.973 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.0007875/0.0007876, allocations: 94.48 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1967/0.1967, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.44e-05/2.442e-05, allocations: 4.219 kB / 451.8 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1239, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.4878, allocations: 94.32 MB / 0.5938 GB, free: 11.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.488, allocations: 59.97 kB / 0.5939 GB, free: 10.95 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03353/0.5216, allocations: 13.05 MB / 0.6066 GB, free: 13.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.5216, allocations: 0 / 0.6066 GB, free: 13.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.387e-05/0.5217, allocations: 16 kB / 0.6066 GB, free: 13.88 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.001367/0.523, allocations: 0.8452 MB / 0.6074 GB, free: 12.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.5231, allocations: 8.031 kB / 0.6075 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.5232, allocations: 67.19 kB / 0.6075 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006498/0.5239, allocations: 422 kB / 0.6079 GB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.5239, allocations: 40.94 kB / 0.608 GB, free: 12.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.346e-05/0.524, allocations: 44 kB / 0.608 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006513/0.5246, allocations: 423.9 kB / 0.6084 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.5247, allocations: 0 / 0.6084 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.5247, allocations: 16 kB / 0.6084 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.5247, allocations: 12 kB / 0.6084 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004848/0.5252, allocations: 272 kB / 0.6087 GB, free: 11.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.5271, allocations: 1.126 MB / 0.6098 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009508/0.528, allocations: 469.7 kB / 0.6102 GB, free: 9.984 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.5283, allocations: 158.2 kB / 0.6104 GB, free: 9.828 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.5283, allocations: 8.438 kB / 0.6104 GB, free: 9.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004121/0.5287, allocations: 253.4 kB / 0.6106 GB, free: 9.559 MB / 426.7 MB Notification: Performance of pre-optimization done (n=52): time 1.954e-06/0.5287, allocations: 0 / 0.6106 GB, free: 9.559 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.0007114/0.5295, allocations: 419.5 kB / 0.611 GB, free: 9.141 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.5296, allocations: 133 kB / 0.6112 GB, free: 8.977 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005314/0.5301, allocations: 474.9 kB / 0.6116 GB, free: 8.504 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.343e-05/0.5302, allocations: 49.7 kB / 0.6117 GB, free: 8.449 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.5303, allocations: 249.3 kB / 0.6119 GB, free: 8.203 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.5304, allocations: 126.4 kB / 0.612 GB, free: 8.078 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/0.5305, allocations: 8 kB / 0.612 GB, free: 8.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5306, allocations: 366.7 kB / 0.6124 GB, free: 7.703 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.5309, allocations: 145.1 kB / 0.6125 GB, free: 7.562 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.5312, allocations: 237 kB / 0.6127 GB, free: 7.309 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.5314, allocations: 123.2 kB / 0.6129 GB, free: 7.191 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5314, allocations: 0 / 0.6129 GB, free: 7.191 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008288/0.5322, allocations: 475.3 kB / 0.6133 GB, free: 6.715 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.5323, allocations: 4 kB / 0.6133 GB, free: 6.711 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.5323, allocations: 4 kB / 0.6133 GB, free: 6.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.5324, allocations: 36.83 kB / 0.6134 GB, free: 6.668 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.5327, allocations: 71.78 kB / 0.6134 GB, free: 6.598 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.5339, allocations: 1.423 MB / 0.6148 GB, free: 5.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003865/0.5343, allocations: 83.91 kB / 0.6149 GB, free: 4.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.5343, allocations: 20.06 kB / 0.6149 GB, free: 4.938 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.000151/0.5345, allocations: 162.2 kB / 0.6151 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/0.5346, allocations: 51.39 kB / 0.6151 GB, free: 4.719 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007438/0.5353, allocations: 461.3 kB / 0.6156 GB, free: 4.266 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.5353, allocations: 12 kB / 0.6156 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.5353, allocations: 0 / 0.6156 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.5354, allocations: 0 / 0.6156 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.5368, allocations: 1.08 MB / 0.6166 GB, free: 3.117 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.5368, allocations: 3.938 kB / 0.6166 GB, free: 3.113 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/0.537, allocations: 47.91 kB / 0.6167 GB, free: 3.066 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.537, allocations: 4 kB / 0.6167 GB, free: 3.062 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/0.5371, allocations: 11.98 kB / 0.6167 GB, free: 3.051 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.5371, allocations: 0 / 0.6167 GB, free: 3.051 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5371, allocations: 0 / 0.6167 GB, free: 3.051 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006496/0.5378, allocations: 0.519 MB / 0.6172 GB, free: 2.516 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.5379, allocations: 136.4 kB / 0.6173 GB, free: 2.363 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.863e-05/0.538, allocations: 24 kB / 0.6174 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003797/0.5383, allocations: 71.92 kB / 0.6174 GB, free: 2.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.5385, allocations: 72.33 kB / 0.6175 GB, free: 2.195 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.5385, allocations: 19.98 kB / 0.6175 GB, free: 2.176 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003769/0.5389, allocations: 357.1 kB / 0.6178 GB, free: 1.828 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5389, allocations: 0 / 0.6178 GB, free: 1.828 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004662/0.5394, allocations: 127.8 kB / 0.618 GB, free: 1.703 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.0008756/0.5403, allocations: 436.9 kB / 0.6184 GB, free: 1.371 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007987/0.5411, allocations: 0.4973 MB / 0.6189 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.5411, allocations: 0 / 0.6189 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.5414, allocations: 202.5 kB / 0.6191 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.5419, allocations: 80.7 kB / 0.6191 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.543, allocations: 0.6912 MB / 0.6198 GB, free: 15.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.5434, allocations: 0.8764 MB / 0.6207 GB, free: 14.96 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.5436, allocations: 71.42 kB / 0.6207 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.5438, allocations: 47.42 kB / 0.6208 GB, free: 14.85 MB / 442.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5438, allocations: 0 / 0.6208 GB, free: 14.85 MB / 442.7 MB Notification: Performance of Templates: time 0.01161/0.5554, allocations: 6.544 MB / 0.6272 GB, free: 8.336 MB / 442.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