Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001448/0.001448, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.679/1.679, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009974/0.0009974, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2475/0.2475, allocations: 43.55 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004022, allocations: 12 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1285, allocations: 58.86 MB / 490.2 MB, free: 8.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4036/0.5322, allocations: 88.01 MB / 0.5647 GB, free: 11.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.5325, allocations: 62.47 kB / 0.5648 GB, free: 11.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01225/0.5447, allocations: 3.96 MB / 0.5686 GB, free: 8.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5448, allocations: 0 / 0.5686 GB, free: 8.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.5448, allocations: 4 kB / 0.5686 GB, free: 8.316 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001239/0.546, allocations: 0.5935 MB / 0.5692 GB, free: 7.691 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.5461, allocations: 8.031 kB / 0.5692 GB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.483e-05/0.5462, allocations: 43.48 kB / 0.5693 GB, free: 7.641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.5466, allocations: 242.4 kB / 0.5695 GB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.5466, allocations: 15.38 kB / 0.5695 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.5467, allocations: 21.73 kB / 0.5695 GB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.5472, allocations: 231.2 kB / 0.5697 GB, free: 7.164 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.5473, allocations: 4 kB / 0.5697 GB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.5473, allocations: 7.734 kB / 0.5698 GB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.5473, allocations: 8 kB / 0.5698 GB, free: 7.148 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002979/0.5476, allocations: 132.9 kB / 0.5699 GB, free: 7.055 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.5488, allocations: 0.5618 MB / 0.5704 GB, free: 6.523 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.5493, allocations: 318.3 kB / 0.5707 GB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.5493, allocations: 7.953 kB / 0.5707 GB, free: 6.293 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004105/0.5497, allocations: 256 kB / 0.571 GB, free: 6.082 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.033e-06/0.5497, allocations: 0 / 0.571 GB, free: 6.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001009/0.5507, allocations: 0.5674 MB / 0.5715 GB, free: 5.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/0.5508, allocations: 71.02 kB / 0.5716 GB, free: 5.555 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.5511, allocations: 184 kB / 0.5718 GB, free: 5.395 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.5512, allocations: 47.81 kB / 0.5718 GB, free: 5.352 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.5513, allocations: 131.8 kB / 0.572 GB, free: 5.246 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.5514, allocations: 104.5 kB / 0.5721 GB, free: 5.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/0.5515, allocations: 10.19 kB / 0.5721 GB, free: 5.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.5517, allocations: 348.5 kB / 0.5724 GB, free: 4.824 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.5519, allocations: 100.4 kB / 0.5725 GB, free: 4.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.5523, allocations: 286.6 kB / 0.5728 GB, free: 4.426 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003083/0.5526, allocations: 150.7 kB / 0.5729 GB, free: 4.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.5527, allocations: 0 / 0.5729 GB, free: 4.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000674/0.5533, allocations: 447.1 kB / 0.5733 GB, free: 3.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.5534, allocations: 15.89 kB / 0.5734 GB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.5534, allocations: 4 kB / 0.5734 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.03e-05/0.5534, allocations: 12 kB / 0.5734 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.5537, allocations: 59.72 kB / 0.5734 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.5537, allocations: 16.41 kB / 0.5734 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.5539, allocations: 43.42 kB / 0.5735 GB, free: 3.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.85e-05/0.5539, allocations: 19.81 kB / 0.5735 GB, free: 3.828 MB / 378.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.0002082/0.5541, allocations: 203.8 kB / 0.5737 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.5542, allocations: 31.66 kB / 0.5737 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.216e-05/0.5542, allocations: 34.25 kB / 0.5738 GB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.5543, allocations: 12 kB / 0.5738 GB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5543, allocations: 0 / 0.5738 GB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.5543, allocations: 3.984 kB / 0.5738 GB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.5557, allocations: 0.9416 MB / 0.5747 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5557, allocations: 0 / 0.5747 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.884e-05/0.5558, allocations: 15.81 kB / 0.5747 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.5558, allocations: 0 / 0.5747 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.5559, allocations: 15.53 kB / 0.5747 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5559, allocations: 0 / 0.5747 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.5559, allocations: 0 / 0.5747 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007313/0.5566, allocations: 0.5649 MB / 0.5753 GB, free: 2.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.517e-05/0.5567, allocations: 100.7 kB / 0.5754 GB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.5568, allocations: 19.42 kB / 0.5754 GB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.557, allocations: 39.89 kB / 0.5754 GB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.265e-05/0.5571, allocations: 27.91 kB / 0.5755 GB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.5571, allocations: 15.92 kB / 0.5755 GB, free: 2.031 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001313/0.5573, allocations: 155.2 kB / 0.5756 GB, free: 1.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5573, allocations: 0 / 0.5756 GB, free: 1.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003637/0.5576, allocations: 67.31 kB / 0.5757 GB, free: 1.844 MB / 378.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.0001856/0.5578, allocations: 138.8 kB / 0.5758 GB, free: 1.711 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005412/0.5584, allocations: 330 kB / 0.5761 GB, free: 1.457 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5584, allocations: 0 / 0.5761 GB, free: 1.457 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.5587, allocations: 174.9 kB / 0.5763 GB, free: 1.324 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.559, allocations: 37.59 kB / 0.5763 GB, free: 1.297 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.5602, allocations: 0.5652 MB / 0.5769 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.5606, allocations: 0.7691 MB / 0.5776 GB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.447e-05/0.5607, allocations: 30.97 kB / 0.5777 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.398e-05/0.5607, allocations: 31.12 kB / 0.5777 GB, free: 15.91 MB / 394.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5607, allocations: 0 / 0.5777 GB, free: 15.91 MB / 394.7 MB Notification: Performance of Templates: time 0.005944/0.5667, allocations: 2.758 MB / 0.5804 GB, free: 13.16 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Discrete/Discrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches