Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00126/0.00126, allocations: 176.2 kB / 17.41 MB, free: 4.414 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.476/1.476, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.0007143/0.0007142, allocations: 89.41 kB / 271.9 MB, free: 8.25 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.3243/0.3243, allocations: 43.55 MB / 363.8 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.0003721, allocations: 16 kB / 432.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.126, allocations: 58.85 MB / 491.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3534/0.4795, allocations: 92.96 MB / 0.5707 GB, free: 9.309 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.4798, allocations: 73.31 kB / 0.5708 GB, free: 9.238 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03383/0.5136, allocations: 12.84 MB / 0.5833 GB, free: 12.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5137, allocations: 4 kB / 0.5833 GB, free: 12.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.635e-05/0.5137, allocations: 8 kB / 0.5833 GB, free: 12.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.001594/0.5153, allocations: 0.9128 MB / 0.5842 GB, free: 11.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.5154, allocations: 12.03 kB / 0.5842 GB, free: 11.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.5155, allocations: 72.03 kB / 0.5843 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006619/0.5162, allocations: 442.8 kB / 0.5847 GB, free: 10.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.196e-05/0.5163, allocations: 33.38 kB / 0.5847 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.623e-05/0.5163, allocations: 44.38 kB / 0.5848 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000847/0.5172, allocations: 472 kB / 0.5852 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.5172, allocations: 0 / 0.5852 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.809e-05/0.5173, allocations: 19.98 kB / 0.5853 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.5173, allocations: 16 kB / 0.5853 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007488/0.5181, allocations: 339.8 kB / 0.5856 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.52, allocations: 1.122 MB / 0.5867 GB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.5212, allocations: 0.5094 MB / 0.5872 GB, free: 8.273 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.5217, allocations: 194.1 kB / 0.5874 GB, free: 8.082 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.743e-05/0.5217, allocations: 4.438 kB / 0.5874 GB, free: 8.078 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005989/0.5223, allocations: 305.1 kB / 0.5877 GB, free: 7.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 3.397e-06/0.5223, allocations: 0 / 0.5877 GB, free: 7.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.001459/0.5238, allocations: 0.6507 MB / 0.5883 GB, free: 7.113 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/0.5239, allocations: 137 kB / 0.5884 GB, free: 6.949 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005996/0.5245, allocations: 0.5094 MB / 0.5889 GB, free: 6.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.5246, allocations: 45.7 kB / 0.589 GB, free: 6.379 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.5247, allocations: 245.4 kB / 0.5892 GB, free: 6.133 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.5249, allocations: 122.5 kB / 0.5893 GB, free: 6.012 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.015e-05/0.5249, allocations: 16 kB / 0.5893 GB, free: 5.996 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.5251, allocations: 358.8 kB / 0.5897 GB, free: 5.637 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000389/0.5255, allocations: 181 kB / 0.5899 GB, free: 5.461 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/0.5259, allocations: 272.9 kB / 0.5901 GB, free: 5.172 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006595/0.5266, allocations: 317.2 kB / 0.5904 GB, free: 4.855 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5266, allocations: 7.938 kB / 0.5904 GB, free: 4.848 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009217/0.5275, allocations: 0.4906 MB / 0.5909 GB, free: 4.348 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.5276, allocations: 8 kB / 0.5909 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.5276, allocations: 7.875 kB / 0.5909 GB, free: 4.332 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.5276, allocations: 4 kB / 0.5909 GB, free: 4.328 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.5279, allocations: 67.95 kB / 0.591 GB, free: 4.262 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.5279, allocations: 4 kB / 0.591 GB, free: 4.258 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.5283, allocations: 83.78 kB / 0.5911 GB, free: 4.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.5283, allocations: 20 kB / 0.5911 GB, free: 4.156 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.0002673/0.5286, allocations: 218.9 kB / 0.5913 GB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.5287, allocations: 55.33 kB / 0.5914 GB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.5297, allocations: 0.5287 MB / 0.5919 GB, free: 3.348 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.5298, allocations: 4 kB / 0.5919 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5298, allocations: 4 kB / 0.5919 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5298, allocations: 7.984 kB / 0.5919 GB, free: 3.332 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.5317, allocations: 1.146 MB / 0.593 GB, free: 2.129 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5317, allocations: 3.938 kB / 0.593 GB, free: 2.125 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.5319, allocations: 43.91 kB / 0.5931 GB, free: 2.082 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.5319, allocations: 4 kB / 0.5931 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.5319, allocations: 19.98 kB / 0.5931 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.5319, allocations: 0 / 0.5931 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5319, allocations: 0 / 0.5931 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009913/0.5329, allocations: 0.5892 MB / 0.5937 GB, free: 1.449 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.5331, allocations: 132.5 kB / 0.5938 GB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.46e-05/0.5332, allocations: 19.98 kB / 0.5938 GB, free: 1.281 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003589/0.5335, allocations: 71.94 kB / 0.5939 GB, free: 1.211 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.5337, allocations: 80.25 kB / 0.5939 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.699e-05/0.5337, allocations: 15.98 kB / 0.594 GB, free: 1.117 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003994/0.5341, allocations: 355.1 kB / 0.5943 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5342, allocations: 0 / 0.5943 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004924/0.5347, allocations: 135.8 kB / 0.5944 GB, free: 0.6367 MB / 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.0009559/0.5356, allocations: 456.7 kB / 0.5949 GB, free: 288 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009611/0.5366, allocations: 465.6 kB / 0.5953 GB, free: 15.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5366, allocations: 0 / 0.5953 GB, free: 15.83 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004647/0.5371, allocations: 254.5 kB / 0.5955 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.5376, allocations: 97.11 kB / 0.5956 GB, free: 15.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.5392, allocations: 1.075 MB / 0.5967 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.5396, allocations: 0.8723 MB / 0.5975 GB, free: 13.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.5398, allocations: 47.42 kB / 0.5976 GB, free: 13.44 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5398, allocations: 4 kB / 0.5976 GB, free: 13.44 MB / 426.7 MB Notification: Performance of Templates: time 0.009568/0.5493, allocations: 7.194 MB / 0.6046 GB, free: 6.25 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches