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.0008754/0.0008753, allocations: 180.9 kB / 8.006 MB, free: 1.07 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.53/1.53, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008068/0.0008067, allocations: 86.62 kB / 261.7 MB, free: 1.68 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.1903/0.1903, allocations: 43.49 MB / 353.2 MB, free: 268 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.488e-05/1.488e-05, allocations: 0 / 418.3 MB, free: 28.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 58.86 MB / 477.1 MB, free: 1.629 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.369/0.475, allocations: 92.14 MB / 0.5559 GB, free: 3.402 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.4753, allocations: 68.64 kB / 0.556 GB, free: 3.367 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03291/0.5082, allocations: 12.7 MB / 0.5684 GB, free: 8.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5082, allocations: 0 / 0.5684 GB, free: 8.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.659e-05/0.5083, allocations: 12 kB / 0.5684 GB, free: 8.738 MB / 378.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.001497/0.5098, allocations: 0.8439 MB / 0.5692 GB, free: 7.867 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.5098, allocations: 12.03 kB / 0.5692 GB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.51, allocations: 67.25 kB / 0.5693 GB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006323/0.5106, allocations: 425.3 kB / 0.5697 GB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.5106, allocations: 12 kB / 0.5697 GB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.724e-05/0.5107, allocations: 28 kB / 0.5697 GB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004234/0.5111, allocations: 251 kB / 0.57 GB, free: 7.191 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005527/0.5117, allocations: 366 kB / 0.5703 GB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.5117, allocations: 8 kB / 0.5703 GB, free: 6.895 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.5118, allocations: 3.812 kB / 0.5703 GB, free: 6.895 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.5118, allocations: 11.98 kB / 0.5703 GB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.5136, allocations: 1.045 MB / 0.5714 GB, free: 6.008 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008929/0.5145, allocations: 438 kB / 0.5718 GB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.5148, allocations: 149.5 kB / 0.5719 GB, free: 5.605 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.98e-05/0.5148, allocations: 12.36 kB / 0.5719 GB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003943/0.5152, allocations: 240.7 kB / 0.5722 GB, free: 5.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 2.685e-06/0.5152, allocations: 0 / 0.5722 GB, free: 5.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006883/0.5159, allocations: 384.7 kB / 0.5725 GB, free: 5.109 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.516, allocations: 137 kB / 0.5727 GB, free: 4.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.5165, allocations: 463.2 kB / 0.5731 GB, free: 4.598 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.787e-05/0.5166, allocations: 37.52 kB / 0.5731 GB, free: 4.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.5168, allocations: 249.6 kB / 0.5734 GB, free: 4.387 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.5169, allocations: 103.1 kB / 0.5735 GB, free: 4.301 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/0.5169, allocations: 3.062 kB / 0.5735 GB, free: 4.301 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.5171, allocations: 366.5 kB / 0.5738 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.5173, allocations: 132.2 kB / 0.5739 GB, free: 3.883 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.5176, allocations: 222.6 kB / 0.5742 GB, free: 3.707 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.5178, allocations: 110.5 kB / 0.5743 GB, free: 3.637 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5178, allocations: 3.938 kB / 0.5743 GB, free: 3.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007882/0.5186, allocations: 437.3 kB / 0.5747 GB, free: 3.285 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.5186, allocations: 7.953 kB / 0.5747 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.5186, allocations: 0 / 0.5747 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.5188, allocations: 35.66 kB / 0.5747 GB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.5191, allocations: 67.08 kB / 0.5748 GB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.5203, allocations: 1.385 MB / 0.5761 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.5207, allocations: 79.97 kB / 0.5762 GB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.5208, allocations: 15.81 kB / 0.5762 GB, free: 1.66 MB / 378.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.0001606/0.5209, allocations: 145.3 kB / 0.5764 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.14e-05/0.521, allocations: 51.38 kB / 0.5764 GB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006965/0.5217, allocations: 423.4 kB / 0.5768 GB, free: 1.164 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.5217, allocations: 4 kB / 0.5768 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.5217, allocations: 0 / 0.5768 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.5218, allocations: 4 kB / 0.5768 GB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.5231, allocations: 0.9681 MB / 0.5778 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5231, allocations: 4 kB / 0.5778 GB, free: 360 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.5233, allocations: 47.59 kB / 0.5778 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-06/0.5233, allocations: 0 / 0.5778 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.195e-05/0.5234, allocations: 7.984 kB / 0.5778 GB, free: 308 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.5234, allocations: 4 kB / 0.5778 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5234, allocations: 0 / 0.5778 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006461/0.524, allocations: 0.4901 MB / 0.5783 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.5242, allocations: 145.1 kB / 0.5785 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.62e-05/0.5243, allocations: 6.938 kB / 0.5785 GB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.5246, allocations: 71.05 kB / 0.5785 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.5248, allocations: 68.52 kB / 0.5786 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.5249, allocations: 15.42 kB / 0.5786 GB, free: 15.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003619/0.5252, allocations: 338 kB / 0.5789 GB, free: 15.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5252, allocations: 0 / 0.5789 GB, free: 15.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005129/0.5257, allocations: 114.8 kB / 0.579 GB, free: 15.23 MB / 394.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.0008526/0.5266, allocations: 389.8 kB / 0.5794 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007371/0.5274, allocations: 477.8 kB / 0.5799 GB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.5274, allocations: 0 / 0.5799 GB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.5277, allocations: 192.2 kB / 0.5801 GB, free: 14.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004962/0.5282, allocations: 88.3 kB / 0.5801 GB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.5292, allocations: 0.659 MB / 0.5808 GB, free: 13.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.5297, allocations: 0.8833 MB / 0.5816 GB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002403/0.5299, allocations: 75.03 kB / 0.5817 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.5301, allocations: 47.42 kB / 0.5818 GB, free: 12.74 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5301, allocations: 4 kB / 0.5818 GB, free: 12.73 MB / 394.7 MB Notification: Performance of Templates: time 0.01182/0.5419, allocations: 6.132 MB / 0.5878 GB, free: 6.621 MB / 394.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