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.000906/0.000906, allocations: 183 kB / 18.09 MB, free: 3.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.157/1.157, allocations: 223.3 MB / 242.1 MB, free: 9.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007982/0.0007982, allocations: 100.4 kB / 293.3 MB, free: 10.56 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.2671/0.2671, allocations: 44.14 MB / 388.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003228/0.0003229, allocations: 12 kB / 461.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2439, allocations: 61.87 MB / 0.5107 GB, free: 38.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08767/0.3317, allocations: 89.01 MB / 0.5976 GB, free: 6.051 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000172/0.3319, allocations: 71.89 kB / 0.5977 GB, free: 5.984 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01091/0.3428, allocations: 4.035 MB / 0.6016 GB, free: 1.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3428, allocations: 4 kB / 0.6016 GB, free: 1.926 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.3428, allocations: 8 kB / 0.6017 GB, free: 1.918 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008974/0.3437, allocations: 0.5818 MB / 0.6022 GB, free: 1.289 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.3438, allocations: 12.03 kB / 0.6022 GB, free: 1.277 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.431e-05/0.3438, allocations: 32.56 kB / 0.6023 GB, free: 1.246 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.3441, allocations: 248.8 kB / 0.6025 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.3441, allocations: 28.3 kB / 0.6025 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/0.3441, allocations: 20.38 kB / 0.6025 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003706/0.3445, allocations: 230 kB / 0.6028 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.3445, allocations: 192 / 0.6028 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.3446, allocations: 11.92 kB / 0.6028 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3446, allocations: 11.94 kB / 0.6028 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002563/0.3448, allocations: 131.9 kB / 0.6029 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008972/0.3458, allocations: 0.5704 MB / 0.6035 GB, free: 15.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004549/0.3462, allocations: 306.9 kB / 0.6038 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.3464, allocations: 130.9 kB / 0.6039 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.3465, allocations: 12 kB / 0.6039 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003544/0.3468, allocations: 235.5 kB / 0.6041 GB, free: 15.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 1.943e-06/0.3468, allocations: 0 / 0.6041 GB, free: 15.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008869/0.3477, allocations: 0.5751 MB / 0.6047 GB, free: 14.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.3478, allocations: 79.38 kB / 0.6048 GB, free: 14.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.348, allocations: 211.7 kB / 0.605 GB, free: 14.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.348, allocations: 41.7 kB / 0.605 GB, free: 14.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.503e-05/0.3481, allocations: 133 kB / 0.6051 GB, free: 14.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.749e-05/0.3482, allocations: 102.7 kB / 0.6052 GB, free: 14.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/0.3482, allocations: 8 kB / 0.6052 GB, free: 14.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3483, allocations: 350.8 kB / 0.6056 GB, free: 13.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.3485, allocations: 97.08 kB / 0.6057 GB, free: 13.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.3488, allocations: 293.4 kB / 0.6059 GB, free: 13.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004775/0.3492, allocations: 433.4 kB / 0.6064 GB, free: 12.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3493, allocations: 4 kB / 0.6064 GB, free: 12.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006314/0.3499, allocations: 444.8 kB / 0.6068 GB, free: 12.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3499, allocations: 4 kB / 0.6068 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3499, allocations: 8 kB / 0.6068 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.35, allocations: 8.656 kB / 0.6068 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.3501, allocations: 63.84 kB / 0.6069 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.3502, allocations: 19.92 kB / 0.6069 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/0.3503, allocations: 35.78 kB / 0.6069 GB, free: 12.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.3504, allocations: 24 kB / 0.6069 GB, free: 12.11 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.0001601/0.3505, allocations: 197.7 kB / 0.6071 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.928e-05/0.3506, allocations: 27.62 kB / 0.6072 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/0.3506, allocations: 38.98 kB / 0.6072 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3506, allocations: 8 kB / 0.6072 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3507, allocations: 0 / 0.6072 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3507, allocations: 7.922 kB / 0.6072 GB, free: 11.83 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.3519, allocations: 0.9357 MB / 0.6081 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3519, allocations: 0 / 0.6081 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-05/0.352, allocations: 15.94 kB / 0.6081 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.352, allocations: 0 / 0.6081 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.352, allocations: 15.97 kB / 0.6082 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.352, allocations: 4 kB / 0.6082 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3521, allocations: 4 kB / 0.6082 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006538/0.3527, allocations: 0.563 MB / 0.6087 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/0.3528, allocations: 100.8 kB / 0.6088 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.3528, allocations: 19.98 kB / 0.6088 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.3531, allocations: 39.95 kB / 0.6089 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.3531, allocations: 31.89 kB / 0.6089 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.3532, allocations: 19.98 kB / 0.6089 GB, free: 9.992 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.3533, allocations: 145.5 kB / 0.6091 GB, free: 9.852 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3533, allocations: 0 / 0.6091 GB, free: 9.852 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000339/0.3536, allocations: 72 kB / 0.6091 GB, free: 9.781 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.000127/0.3537, allocations: 131.7 kB / 0.6092 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005128/0.3543, allocations: 333 kB / 0.6096 GB, free: 9.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3543, allocations: 4.562 kB / 0.6096 GB, free: 9.316 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.3545, allocations: 171.8 kB / 0.6097 GB, free: 9.148 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.3549, allocations: 42.66 kB / 0.6098 GB, free: 9.109 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009611/0.3558, allocations: 0.5584 MB / 0.6103 GB, free: 8.523 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.3561, allocations: 0.7685 MB / 0.6111 GB, free: 7.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.693e-05/0.3562, allocations: 34.97 kB / 0.6111 GB, free: 7.695 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.426e-05/0.3563, allocations: 27.42 kB / 0.6111 GB, free: 7.668 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/0.3563, allocations: 0 / 0.6111 GB, free: 7.668 MB / 426.7 MB Notification: Performance of Templates: time 0.005258/0.3615, allocations: 2.773 MB / 0.6138 GB, free: 4.918 MB / 426.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/jenkins1/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