Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.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.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008829/0.0008829, allocations: 181.3 kB / 17.41 MB, free: 4.289 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.219/1.219, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.0007428/0.0007429, allocations: 95.39 kB / 271.9 MB, free: 8.27 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.3103/0.3103, allocations: 43.56 MB / 363.8 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003681, allocations: 12 kB / 432.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1249, allocations: 58.85 MB / 491.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3258/0.4507, allocations: 88.05 MB / 0.5659 GB, free: 14.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.451, allocations: 63.97 kB / 0.566 GB, free: 14.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01135/0.4623, allocations: 3.971 MB / 0.5698 GB, free: 10.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4624, allocations: 0 / 0.5698 GB, free: 10.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.4624, allocations: 4 kB / 0.5698 GB, free: 10.27 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009882/0.4634, allocations: 0.5925 MB / 0.5704 GB, free: 9.629 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.4634, allocations: 8.031 kB / 0.5704 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.277e-05/0.4635, allocations: 36.55 kB / 0.5705 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.4638, allocations: 248.8 kB / 0.5707 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.4638, allocations: 24.3 kB / 0.5707 GB, free: 9.277 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.4639, allocations: 20.38 kB / 0.5707 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004139/0.4643, allocations: 238 kB / 0.571 GB, free: 9.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.4643, allocations: 192 / 0.571 GB, free: 9.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.4643, allocations: 9 kB / 0.571 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.4643, allocations: 4 kB / 0.571 GB, free: 9.008 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.4647, allocations: 135.9 kB / 0.5711 GB, free: 8.875 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.4657, allocations: 0.568 MB / 0.5717 GB, free: 8.258 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005054/0.4662, allocations: 311.3 kB / 0.572 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.4664, allocations: 129.7 kB / 0.5721 GB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.4665, allocations: 7.984 kB / 0.5721 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004077/0.4669, allocations: 251.5 kB / 0.5723 GB, free: 7.551 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.4669, allocations: 0 / 0.5723 GB, free: 7.551 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.001065/0.468, allocations: 0.5634 MB / 0.5729 GB, free: 6.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.71e-05/0.4681, allocations: 75.38 kB / 0.573 GB, free: 6.895 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.4683, allocations: 213.8 kB / 0.5732 GB, free: 6.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.4683, allocations: 45.7 kB / 0.5732 GB, free: 6.629 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.694e-05/0.4684, allocations: 128.9 kB / 0.5733 GB, free: 6.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.4e-05/0.4685, allocations: 106.8 kB / 0.5734 GB, free: 6.395 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.672e-05/0.4685, allocations: 12 kB / 0.5734 GB, free: 6.383 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4687, allocations: 338.8 kB / 0.5738 GB, free: 6.043 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.4689, allocations: 105.1 kB / 0.5739 GB, free: 5.941 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.4692, allocations: 293.3 kB / 0.5741 GB, free: 5.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005223/0.4697, allocations: 426.8 kB / 0.5746 GB, free: 5.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.4697, allocations: 4 kB / 0.5746 GB, free: 5.066 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006864/0.4704, allocations: 453.2 kB / 0.575 GB, free: 4.617 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.4704, allocations: 11.94 kB / 0.575 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.4705, allocations: 8 kB / 0.575 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.4705, allocations: 8 kB / 0.575 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.4707, allocations: 59.84 kB / 0.5751 GB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.4707, allocations: 17 kB / 0.5751 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.4709, allocations: 43.98 kB / 0.5751 GB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.4709, allocations: 24 kB / 0.5752 GB, free: 4.449 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002008/0.4711, allocations: 193.7 kB / 0.5753 GB, free: 4.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.4712, allocations: 31.62 kB / 0.5754 GB, free: 4.219 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.623e-05/0.4712, allocations: 30.98 kB / 0.5754 GB, free: 4.188 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4713, allocations: 4 kB / 0.5754 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4713, allocations: 0 / 0.5754 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.4713, allocations: 11.88 kB / 0.5754 GB, free: 4.172 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.4727, allocations: 0.9381 MB / 0.5763 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4727, allocations: 0 / 0.5763 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.728e-05/0.4727, allocations: 23.92 kB / 0.5764 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4728, allocations: 0 / 0.5764 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.4728, allocations: 11.98 kB / 0.5764 GB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4728, allocations: 4 kB / 0.5764 GB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4728, allocations: 0 / 0.5764 GB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007373/0.4736, allocations: 0.5616 MB / 0.5769 GB, free: 2.562 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.4736, allocations: 105.6 kB / 0.577 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.552e-05/0.4737, allocations: 15.98 kB / 0.577 GB, free: 2.426 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.4739, allocations: 31.97 kB / 0.5771 GB, free: 2.395 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.881e-05/0.474, allocations: 31.95 kB / 0.5771 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.825e-05/0.474, allocations: 15.98 kB / 0.5771 GB, free: 2.348 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.4742, allocations: 152.5 kB / 0.5773 GB, free: 2.199 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4742, allocations: 0 / 0.5773 GB, free: 2.199 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003689/0.4746, allocations: 71.98 kB / 0.5773 GB, free: 2.129 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: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0001656/0.4747, allocations: 135.1 kB / 0.5775 GB, free: 1.988 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005544/0.4753, allocations: 337 kB / 0.5778 GB, free: 1.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4753, allocations: 3.938 kB / 0.5778 GB, free: 1.656 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.4756, allocations: 172.2 kB / 0.5779 GB, free: 1.488 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.476, allocations: 53.23 kB / 0.578 GB, free: 1.438 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.4771, allocations: 0.603 MB / 0.5786 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.4775, allocations: 0.7569 MB / 0.5793 GB, free: 32 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.4776, allocations: 31.42 kB / 0.5794 GB, free: 4 kB / 394.7 MB Notification: Performance of SimCode: time 7.91e-07/0.4776, allocations: 3.938 kB / 0.5794 GB, free: 0 / 394.7 MB Notification: Performance of Templates: time 0.00558/0.4832, allocations: 3.415 MB / 0.5827 GB, free: 12.59 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Discrete/Discrete.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches