Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009301/0.0009303, allocations: 198.2 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 227.2 MB / 245 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007762/0.0007761, allocations: 104.4 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2652/0.2652, allocations: 45.22 MB / 394.7 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002243/0.0002243, allocations: 8 kB / 468.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2538, allocations: 63.24 MB / 0.5192 GB, free: 43.54 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0938/0.3476, allocations: 90.04 MB / 0.6071 GB, free: 15.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001751/0.3479, allocations: 66.06 kB / 0.6072 GB, free: 15.54 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.012/0.3599, allocations: 4.147 MB / 0.6112 GB, free: 11.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3599, allocations: 0 / 0.6112 GB, free: 11.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.987e-05/0.3599, allocations: 8.156 kB / 0.6112 GB, free: 11.39 MB / 426.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.00104/0.361, allocations: 0.5854 MB / 0.6118 GB, free: 10.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.361, allocations: 12.02 kB / 0.6118 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.3612, allocations: 51.56 kB / 0.6119 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.3615, allocations: 235.7 kB / 0.6121 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.3615, allocations: 16 kB / 0.6121 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.3616, allocations: 23.92 kB / 0.6121 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.362, allocations: 233.3 kB / 0.6123 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.362, allocations: 0 / 0.6123 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.362, allocations: 11.98 kB / 0.6124 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.362, allocations: 7.984 kB / 0.6124 GB, free: 10.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002674/0.3623, allocations: 135.9 kB / 0.6125 GB, free: 10 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009307/0.3632, allocations: 0.5626 MB / 0.613 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004626/0.3637, allocations: 312.2 kB / 0.6133 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.3638, allocations: 8 kB / 0.6134 GB, free: 9.066 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003706/0.3641, allocations: 243.4 kB / 0.6136 GB, free: 8.816 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.144e-06/0.3642, allocations: 0 / 0.6136 GB, free: 8.816 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.0009264/0.3651, allocations: 0.5712 MB / 0.6141 GB, free: 8.238 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.3651, allocations: 75.38 kB / 0.6142 GB, free: 8.152 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.3653, allocations: 190.9 kB / 0.6144 GB, free: 7.961 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.3654, allocations: 49.62 kB / 0.6144 GB, free: 7.906 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.777e-05/0.3654, allocations: 129 kB / 0.6146 GB, free: 7.777 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.327e-05/0.3655, allocations: 102.8 kB / 0.6147 GB, free: 7.676 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.3656, allocations: 8 kB / 0.6147 GB, free: 7.668 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3657, allocations: 350.8 kB / 0.615 GB, free: 7.316 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.3659, allocations: 101.1 kB / 0.6151 GB, free: 7.219 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/0.3661, allocations: 289.4 kB / 0.6154 GB, free: 6.848 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.3664, allocations: 145.9 kB / 0.6155 GB, free: 6.707 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3664, allocations: 4 kB / 0.6155 GB, free: 6.703 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000636/0.367, allocations: 449.3 kB / 0.616 GB, free: 6.258 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3671, allocations: 8 kB / 0.616 GB, free: 6.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3671, allocations: 8 kB / 0.616 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3671, allocations: 8 kB / 0.616 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.3673, allocations: 67.78 kB / 0.616 GB, free: 6.168 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.3673, allocations: 8 kB / 0.616 GB, free: 6.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.3675, allocations: 39.73 kB / 0.6161 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.3676, allocations: 24 kB / 0.6161 GB, free: 6.098 MB / 426.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.0001757/0.3677, allocations: 205.7 kB / 0.6163 GB, free: 5.887 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.813e-05/0.3678, allocations: 31.67 kB / 0.6163 GB, free: 5.855 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.3679, allocations: 38.86 kB / 0.6164 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3679, allocations: 4 kB / 0.6164 GB, free: 5.812 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3679, allocations: 0 / 0.6164 GB, free: 5.812 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3679, allocations: 3.984 kB / 0.6164 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.3693, allocations: 0.9431 MB / 0.6173 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3693, allocations: 0 / 0.6173 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.246e-05/0.3694, allocations: 15.94 kB / 0.6173 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.3694, allocations: 0 / 0.6173 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.3694, allocations: 11.98 kB / 0.6173 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.3694, allocations: 7.984 kB / 0.6173 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3694, allocations: 0 / 0.6173 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007016/0.3701, allocations: 0.5583 MB / 0.6179 GB, free: 4.203 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.49e-05/0.3702, allocations: 100.8 kB / 0.618 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/0.3703, allocations: 19.98 kB / 0.618 GB, free: 4.066 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.3705, allocations: 35.95 kB / 0.618 GB, free: 4.031 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.652e-05/0.3706, allocations: 23.97 kB / 0.6181 GB, free: 4.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.3706, allocations: 23.98 kB / 0.6181 GB, free: 3.984 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001096/0.3707, allocations: 145.5 kB / 0.6182 GB, free: 3.844 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3708, allocations: 0 / 0.6182 GB, free: 3.844 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003723/0.3711, allocations: 79.84 kB / 0.6183 GB, free: 3.766 MB / 426.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.0001529/0.3713, allocations: 132.2 kB / 0.6184 GB, free: 3.629 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005317/0.3718, allocations: 331.5 kB / 0.6187 GB, free: 3.305 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3718, allocations: 3.938 kB / 0.6187 GB, free: 3.301 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.3721, allocations: 173.3 kB / 0.6189 GB, free: 3.133 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.3724, allocations: 37.48 kB / 0.6189 GB, free: 3.098 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.3734, allocations: 0.5663 MB / 0.6195 GB, free: 2.504 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.3737, allocations: 0.7647 MB / 0.6202 GB, free: 1.715 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 9.346e-05/0.3738, allocations: 34.97 kB / 0.6203 GB, free: 1.684 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.163e-05/0.3739, allocations: 31.42 kB / 0.6203 GB, free: 1.652 MB / 426.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3739, allocations: 3.938 kB / 0.6203 GB, free: 1.648 MB / 426.7 MB Notification: Performance of Templates: time 0.005398/0.3793, allocations: 2.745 MB / 0.623 GB, free: 14.93 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Discrete/Discrete.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches