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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008403/0.0008404, allocations: 176.2 kB / 16.77 MB, free: 5.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.001004/0.001004, allocations: 78.42 kB / 271.2 MB, free: 8.246 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.3946/0.3946, allocations: 43.56 MB / 363.1 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 11.98 kB / 432.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1343, allocations: 58.84 MB / 491.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3892/0.5236, allocations: 92.95 MB / 0.5707 GB, free: 9.043 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.5239, allocations: 71.97 kB / 0.5708 GB, free: 8.973 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03566/0.5596, allocations: 12.85 MB / 0.5833 GB, free: 12.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5596, allocations: 4 kB / 0.5833 GB, free: 12.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.001e-05/0.5597, allocations: 8 kB / 0.5833 GB, free: 12.15 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.002037/0.5617, allocations: 0.9157 MB / 0.5842 GB, free: 11.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.5618, allocations: 8.031 kB / 0.5842 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002465/0.562, allocations: 68.09 kB / 0.5843 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008542/0.5629, allocations: 438.8 kB / 0.5847 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.856e-05/0.563, allocations: 41.36 kB / 0.5848 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.563e-05/0.5631, allocations: 40.38 kB / 0.5848 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.5641, allocations: 472 kB / 0.5853 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.5641, allocations: 0 / 0.5853 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.5642, allocations: 27.97 kB / 0.5853 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.5642, allocations: 12 kB / 0.5853 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008142/0.565, allocations: 335.8 kB / 0.5856 GB, free: 9.695 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002246/0.5673, allocations: 1.122 MB / 0.5867 GB, free: 8.523 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.5685, allocations: 0.5133 MB / 0.5872 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004292/0.569, allocations: 190.1 kB / 0.5874 GB, free: 7.809 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.569, allocations: 8.438 kB / 0.5874 GB, free: 7.801 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006181/0.5697, allocations: 301.1 kB / 0.5877 GB, free: 7.496 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 3.106e-06/0.5697, allocations: 0 / 0.5877 GB, free: 7.496 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.001535/0.5712, allocations: 0.6507 MB / 0.5883 GB, free: 6.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.5713, allocations: 141 kB / 0.5885 GB, free: 6.672 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006849/0.572, allocations: 0.5055 MB / 0.589 GB, free: 6.156 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.217e-05/0.5721, allocations: 49.69 kB / 0.589 GB, free: 6.102 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.5723, allocations: 249.4 kB / 0.5892 GB, free: 5.852 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.5725, allocations: 114.5 kB / 0.5893 GB, free: 5.738 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.629e-05/0.5725, allocations: 12 kB / 0.5894 GB, free: 5.727 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.5727, allocations: 366.8 kB / 0.5897 GB, free: 5.359 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004277/0.5731, allocations: 173 kB / 0.5899 GB, free: 5.191 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004859/0.5736, allocations: 276.9 kB / 0.5901 GB, free: 4.898 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007441/0.5744, allocations: 321.2 kB / 0.5904 GB, free: 4.578 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.5744, allocations: 7.938 kB / 0.5905 GB, free: 4.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001173/0.5756, allocations: 498.4 kB / 0.5909 GB, free: 4.074 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.5756, allocations: 7.938 kB / 0.5909 GB, free: 4.066 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.5756, allocations: 3.938 kB / 0.5909 GB, free: 4.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.644e-05/0.5757, allocations: 4 kB / 0.5909 GB, free: 4.059 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003017/0.576, allocations: 63.89 kB / 0.591 GB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.576, allocations: 7.984 kB / 0.591 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004381/0.5764, allocations: 79.8 kB / 0.5911 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.5765, allocations: 19.98 kB / 0.5911 GB, free: 3.891 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 () * 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.000354/0.5768, allocations: 223 kB / 0.5913 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.577, allocations: 59.31 kB / 0.5914 GB, free: 3.605 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.5782, allocations: 0.5326 MB / 0.5919 GB, free: 3.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.5782, allocations: 8 kB / 0.5919 GB, free: 3.062 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.5782, allocations: 0 / 0.5919 GB, free: 3.062 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5782, allocations: 3.984 kB / 0.5919 GB, free: 3.059 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.5803, allocations: 1.15 MB / 0.593 GB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.5803, allocations: 0 / 0.593 GB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.5805, allocations: 39.91 kB / 0.5931 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.5806, allocations: 4 kB / 0.5931 GB, free: 1.809 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.5806, allocations: 15.98 kB / 0.5931 GB, free: 1.793 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.5806, allocations: 4 kB / 0.5931 GB, free: 1.789 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5806, allocations: 0 / 0.5931 GB, free: 1.789 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.5817, allocations: 0.5931 MB / 0.5937 GB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.5818, allocations: 132.5 kB / 0.5938 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.525e-05/0.5819, allocations: 23.98 kB / 0.5938 GB, free: 1.004 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/0.5823, allocations: 71.88 kB / 0.5939 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.5825, allocations: 72.33 kB / 0.594 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.5826, allocations: 19.98 kB / 0.594 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004556/0.583, allocations: 351.1 kB / 0.5943 GB, free: 0.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.583, allocations: 4 kB / 0.5943 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005451/0.5836, allocations: 135.8 kB / 0.5944 GB, free: 372 kB / 410.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.001108/0.5847, allocations: 460 kB / 0.5949 GB, free: 8 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.5858, allocations: 469.6 kB / 0.5953 GB, free: 15.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5858, allocations: 0 / 0.5953 GB, free: 15.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005094/0.5863, allocations: 250.5 kB / 0.5956 GB, free: 15.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006167/0.587, allocations: 85.42 kB / 0.5957 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.5888, allocations: 1.042 MB / 0.5967 GB, free: 14.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.5893, allocations: 0.8645 MB / 0.5975 GB, free: 13.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002871/0.5896, allocations: 75.42 kB / 0.5976 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.5897, allocations: 47.42 kB / 0.5976 GB, free: 13.15 MB / 426.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5897, allocations: 0 / 0.5976 GB, free: 13.15 MB / 426.7 MB Notification: Performance of Templates: time 0.01326/0.603, allocations: 6.442 MB / 0.6039 GB, free: 6.723 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/jenkins1/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