Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 171.4 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 221.5 MB / 230.7 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009375/0.0009375, allocations: 82.12 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1871/0.1871, allocations: 44.16 MB / 376.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.94e-05/1.942e-05, allocations: 4 kB / 444.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1304, allocations: 61.9 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4151/0.5456, allocations: 88.25 MB / 0.5808 GB, free: 8.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.5459, allocations: 63.97 kB / 0.5809 GB, free: 8.207 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01191/0.5578, allocations: 3.974 MB / 0.5848 GB, free: 4.223 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5578, allocations: 0 / 0.5848 GB, free: 4.223 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.5578, allocations: 8.219 kB / 0.5848 GB, free: 4.215 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.0009567/0.5588, allocations: 0.5812 MB / 0.5854 GB, free: 3.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.5588, allocations: 15.98 kB / 0.5854 GB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/0.5589, allocations: 27.62 kB / 0.5854 GB, free: 3.547 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.5592, allocations: 243.6 kB / 0.5856 GB, free: 3.266 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.5592, allocations: 15.94 kB / 0.5856 GB, free: 3.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.5593, allocations: 16 kB / 0.5857 GB, free: 3.234 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002555/0.5596, allocations: 112 kB / 0.5858 GB, free: 3.125 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.5599, allocations: 193.5 kB / 0.586 GB, free: 2.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.5599, allocations: 4 kB / 0.586 GB, free: 2.926 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.5599, allocations: 3.984 kB / 0.586 GB, free: 2.922 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.5599, allocations: 4 kB / 0.586 GB, free: 2.918 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009085/0.5609, allocations: 0.5241 MB / 0.5865 GB, free: 2.355 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003784/0.5612, allocations: 281.2 kB / 0.5867 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.5614, allocations: 112.8 kB / 0.5869 GB, free: 1.961 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.5615, allocations: 4 kB / 0.5869 GB, free: 1.957 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003373/0.5618, allocations: 227.1 kB / 0.5871 GB, free: 1.723 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.884e-06/0.5618, allocations: 3.938 kB / 0.5871 GB, free: 1.719 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.000647/0.5625, allocations: 425.5 kB / 0.5875 GB, free: 1.297 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.5625, allocations: 79.33 kB / 0.5876 GB, free: 1.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.5627, allocations: 175 kB / 0.5877 GB, free: 1.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.5627, allocations: 41.69 kB / 0.5878 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.5628, allocations: 126.1 kB / 0.5879 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.653e-05/0.5629, allocations: 98.8 kB / 0.588 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.224e-05/0.5629, allocations: 0 / 0.588 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.563, allocations: 338.8 kB / 0.5883 GB, free: 428 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.5632, allocations: 89.11 kB / 0.5884 GB, free: 340 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.5634, allocations: 260.3 kB / 0.5886 GB, free: 15.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.5636, allocations: 127.9 kB / 0.5888 GB, free: 15.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.5636, allocations: 4 kB / 0.5888 GB, free: 15.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005044/0.5641, allocations: 369.8 kB / 0.5891 GB, free: 15.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.5642, allocations: 11.94 kB / 0.5891 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.5642, allocations: 8 kB / 0.5891 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.5642, allocations: 8 kB / 0.5891 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.5644, allocations: 67.78 kB / 0.5892 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5645, allocations: 12.55 kB / 0.5892 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.5646, allocations: 39.69 kB / 0.5893 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.5647, allocations: 20 kB / 0.5893 GB, free: 15.33 MB / 410.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 () * 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.0001409/0.5648, allocations: 156.7 kB / 0.5894 GB, free: 15.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.5649, allocations: 27.72 kB / 0.5894 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.722e-05/0.5649, allocations: 27.39 kB / 0.5895 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.5649, allocations: 8 kB / 0.5895 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.5649, allocations: 4.047 kB / 0.5895 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.565, allocations: 7.969 kB / 0.5895 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.5661, allocations: 0.8543 MB / 0.5903 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.5662, allocations: 4 kB / 0.5903 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.5662, allocations: 15.92 kB / 0.5903 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.5663, allocations: 4 kB / 0.5904 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.5663, allocations: 11.94 kB / 0.5904 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.5663, allocations: 0 / 0.5904 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5663, allocations: 0 / 0.5904 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005852/0.5669, allocations: 0.5153 MB / 0.5909 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.163e-05/0.567, allocations: 96.83 kB / 0.591 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.773e-05/0.567, allocations: 19.92 kB / 0.591 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.5673, allocations: 39.91 kB / 0.591 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.5673, allocations: 23.97 kB / 0.591 GB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.5674, allocations: 19.98 kB / 0.5911 GB, free: 13.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.894e-05/0.5675, allocations: 140.2 kB / 0.5912 GB, free: 13.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5675, allocations: 0 / 0.5912 GB, free: 13.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000382/0.5679, allocations: 71.83 kB / 0.5913 GB, free: 13.21 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: 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) * 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.0001478/0.568, allocations: 124.4 kB / 0.5914 GB, free: 13.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004197/0.5685, allocations: 289 kB / 0.5917 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5685, allocations: 0 / 0.5917 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.5687, allocations: 147.9 kB / 0.5918 GB, free: 12.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.569, allocations: 29.78 kB / 0.5918 GB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008417/0.5698, allocations: 374.6 kB / 0.5922 GB, free: 12.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.5701, allocations: 0.7644 MB / 0.5929 GB, free: 11.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.084e-05/0.5702, allocations: 51.28 kB / 0.593 GB, free: 11.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.864e-05/0.5703, allocations: 23.44 kB / 0.593 GB, free: 11.38 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5703, allocations: 0 / 0.593 GB, free: 11.38 MB / 410.7 MB Notification: Performance of Templates: time 0.005782/0.5761, allocations: 2.623 MB / 0.5956 GB, free: 8.777 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches