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.0009817/0.0009816, allocations: 180.2 kB / 14.15 MB, free: 1.176 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.341/1.341, allocations: 221.3 MB / 236 MB, free: 2.949 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.000928/0.0009283, allocations: 88.03 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2022/0.2022, allocations: 44.16 MB / 382.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.387e-05/3.432e-05, allocations: 4.219 kB / 451.8 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1247, allocations: 61.92 MB / 0.5017 GB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4194/0.5442, allocations: 88.9 MB / 0.5885 GB, free: 392 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.5444, allocations: 59.97 kB / 0.5886 GB, free: 332 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01179/0.5562, allocations: 4.017 MB / 0.5925 GB, free: 12.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5562, allocations: 0 / 0.5925 GB, free: 12.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.5562, allocations: 12 kB / 0.5925 GB, free: 12.29 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.0009348/0.5572, allocations: 0.5646 MB / 0.5931 GB, free: 11.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.5572, allocations: 12.03 kB / 0.5931 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.734e-05/0.5573, allocations: 31.61 kB / 0.5931 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.5576, allocations: 235.7 kB / 0.5933 GB, free: 11.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.5577, allocations: 19.94 kB / 0.5934 GB, free: 11.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.561e-05/0.5577, allocations: 27.97 kB / 0.5934 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.5581, allocations: 213.5 kB / 0.5936 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.5581, allocations: 0 / 0.5936 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.5581, allocations: 11.98 kB / 0.5936 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/0.5581, allocations: 4 kB / 0.5936 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002311/0.5584, allocations: 131.9 kB / 0.5937 GB, free: 10.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/0.5594, allocations: 0.5587 MB / 0.5943 GB, free: 10.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004403/0.5598, allocations: 305 kB / 0.5946 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.56, allocations: 120.8 kB / 0.5947 GB, free: 9.926 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.5601, allocations: 4 kB / 0.5947 GB, free: 9.922 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003513/0.5604, allocations: 235.5 kB / 0.5949 GB, free: 9.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 1.973e-06/0.5604, allocations: 0 / 0.5949 GB, free: 9.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006577/0.5611, allocations: 445 kB / 0.5953 GB, free: 9.238 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.5612, allocations: 83.33 kB / 0.5954 GB, free: 9.145 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.5613, allocations: 191 kB / 0.5956 GB, free: 8.953 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.5614, allocations: 45.69 kB / 0.5956 GB, free: 8.902 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.357e-05/0.5615, allocations: 129 kB / 0.5958 GB, free: 8.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.746e-05/0.5615, allocations: 98.8 kB / 0.5959 GB, free: 8.672 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/0.5616, allocations: 11.94 kB / 0.5959 GB, free: 8.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5617, allocations: 346.8 kB / 0.5962 GB, free: 8.312 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.5618, allocations: 93.11 kB / 0.5963 GB, free: 8.223 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.5621, allocations: 281.4 kB / 0.5966 GB, free: 7.863 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.5623, allocations: 131.9 kB / 0.5967 GB, free: 7.734 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.5623, allocations: 4 kB / 0.5967 GB, free: 7.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005557/0.5629, allocations: 425.6 kB / 0.5971 GB, free: 7.309 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.5629, allocations: 8 kB / 0.5971 GB, free: 7.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5629, allocations: 12 kB / 0.5971 GB, free: 7.289 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.5629, allocations: 8.781 kB / 0.5971 GB, free: 7.281 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.5631, allocations: 67.84 kB / 0.5972 GB, free: 7.215 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.5632, allocations: 23.86 kB / 0.5972 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.5634, allocations: 39.78 kB / 0.5972 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.5634, allocations: 27.98 kB / 0.5973 GB, free: 7.125 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.0001231/0.5636, allocations: 164.8 kB / 0.5974 GB, free: 6.957 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.5636, allocations: 27.72 kB / 0.5974 GB, free: 6.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.283e-05/0.5637, allocations: 30.77 kB / 0.5975 GB, free: 6.898 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.5637, allocations: 4 kB / 0.5975 GB, free: 6.895 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5637, allocations: 4 kB / 0.5975 GB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.5637, allocations: 3.953 kB / 0.5975 GB, free: 6.887 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.5649, allocations: 0.924 MB / 0.5984 GB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.565, allocations: 0 / 0.5984 GB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.054e-05/0.565, allocations: 15.98 kB / 0.5984 GB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.565, allocations: 0 / 0.5984 GB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.5651, allocations: 11.98 kB / 0.5984 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.5651, allocations: 4 kB / 0.5984 GB, free: 5.875 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.5651, allocations: 3.938 kB / 0.5984 GB, free: 5.871 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006205/0.5657, allocations: 0.5387 MB / 0.599 GB, free: 5.316 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.447e-05/0.5658, allocations: 100.8 kB / 0.599 GB, free: 5.199 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.326e-05/0.5658, allocations: 19.98 kB / 0.5991 GB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.5661, allocations: 35.95 kB / 0.5991 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.774e-05/0.5662, allocations: 27.97 kB / 0.5991 GB, free: 5.117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.5662, allocations: 19.98 kB / 0.5991 GB, free: 5.098 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.5663, allocations: 149.5 kB / 0.5993 GB, free: 4.953 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5663, allocations: 0 / 0.5993 GB, free: 4.953 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003299/0.5667, allocations: 79.83 kB / 0.5994 GB, free: 4.875 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.00015/0.5668, allocations: 131 kB / 0.5995 GB, free: 4.738 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004489/0.5673, allocations: 323.6 kB / 0.5998 GB, free: 4.422 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.5673, allocations: 0 / 0.5998 GB, free: 4.422 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002699/0.5675, allocations: 159.8 kB / 0.6 GB, free: 4.266 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.5678, allocations: 30.95 kB / 0.6 GB, free: 4.238 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008618/0.5687, allocations: 388.2 kB / 0.6004 GB, free: 3.832 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.569, allocations: 0.7725 MB / 0.6011 GB, free: 3.031 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.788e-05/0.5691, allocations: 34.97 kB / 0.6011 GB, free: 3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.955e-05/0.5692, allocations: 27.42 kB / 0.6012 GB, free: 2.973 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5692, allocations: 0 / 0.6012 GB, free: 2.973 MB / 410.7 MB Notification: Performance of Templates: time 0.005406/0.5746, allocations: 2.757 MB / 0.6039 GB, free: 248 kB / 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