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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 106.6 kB / 18.45 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001488/0.001489, allocations: 187.2 kB / 19.39 MB, free: 3.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2102/0.2102, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 59.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.368, allocations: 60.83 MB / 0.5196 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002981/0.371, allocations: 1.924 MB / 0.5215 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.3722, allocations: 0.6488 MB / 0.5221 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.3723, allocations: 6.062 kB / 0.5221 GB, free: 1.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.3726, allocations: 38.8 kB / 0.5221 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001675/0.3727, allocations: 64.56 kB / 0.5222 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.3733, allocations: 110.5 kB / 0.5223 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003268/0.3736, allocations: 277.8 kB / 0.5226 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.3738, allocations: 52.89 kB / 0.5226 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.374, allocations: 127.2 kB / 0.5227 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.3742, allocations: 162.5 kB / 0.5229 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.317e-05/0.3743, allocations: 24.34 kB / 0.5229 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.915e-05/0.3744, allocations: 26.09 kB / 0.5229 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.3745, allocations: 92.11 kB / 0.523 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.3746, allocations: 124.5 kB / 0.5231 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.375, allocations: 263.5 kB / 0.5234 GB, free: 1.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.375, allocations: 0 / 0.5234 GB, free: 1.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.375, allocations: 0 / 0.5234 GB, free: 1.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.375, allocations: 0.875 kB / 0.5234 GB, free: 1.18 MB / 382.1 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.001412/0.3764, allocations: 0.6372 MB / 0.524 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3765, allocations: 11.59 kB / 0.524 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.674e-05/0.3766, allocations: 30.27 kB / 0.5241 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.3768, allocations: 254.9 kB / 0.5243 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.3769, allocations: 14.81 kB / 0.5243 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.3769, allocations: 23.84 kB / 0.5243 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006005/0.3775, allocations: 229.9 kB / 0.5246 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.3775, allocations: 0 / 0.5246 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.654e-05/0.3776, allocations: 14.17 kB / 0.5246 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3776, allocations: 3.469 kB / 0.5246 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003636/0.378, allocations: 139.2 kB / 0.5247 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.3791, allocations: 0.5482 MB / 0.5252 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.3797, allocations: 309.8 kB / 0.5255 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002408/0.3799, allocations: 130.1 kB / 0.5257 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.38, allocations: 8.875 kB / 0.5257 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004472/0.3804, allocations: 260.6 kB / 0.5259 GB, free: 15.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.094e-06/0.3804, allocations: 0 / 0.5259 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.001073/0.3815, allocations: 0.5731 MB / 0.5265 GB, free: 15.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.3816, allocations: 70.23 kB / 0.5265 GB, free: 15.33 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.3818, allocations: 209.3 kB / 0.5267 GB, free: 15.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.3819, allocations: 45.48 kB / 0.5268 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.382, allocations: 141.2 kB / 0.5269 GB, free: 15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.18e-05/0.3821, allocations: 105.2 kB / 0.527 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.3822, allocations: 91.38 kB / 0.5271 GB, free: 14.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.3824, allocations: 343.3 kB / 0.5274 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.3826, allocations: 104.9 kB / 0.5275 GB, free: 14.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.3829, allocations: 290.2 kB / 0.5278 GB, free: 14.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005682/0.3835, allocations: 431.3 kB / 0.5282 GB, free: 13.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3835, allocations: 0.9375 kB / 0.5282 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007459/0.3843, allocations: 455.7 kB / 0.5287 GB, free: 13.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3843, allocations: 8.031 kB / 0.5287 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.3843, allocations: 9.516 kB / 0.5287 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.3843, allocations: 10.31 kB / 0.5287 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.3846, allocations: 59.94 kB / 0.5287 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.161e-05/0.3846, allocations: 26.09 kB / 0.5288 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.3848, allocations: 37.48 kB / 0.5288 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.3849, allocations: 22.25 kB / 0.5288 GB, free: 13.52 MB / 398.1 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 (triggeredMax.y,$PRE.triggeredMax.y,triggeredSampler.y,$PRE.triggeredSampler.y,stateSpace.firstTrigger,$PRE.stateSpace.firstTrigger,stateSpace.x[1],$PRE.stateSpace.x[1],stateSpace.x[2],$PRE.stateSpace.x[2],stateSpace.y[1],$PRE.stateSpace.y[1],transferFunction.firstTrigger,$PRE.transferFunction.firstTrigger,transferFunction.x1,$PRE.transferFunction.x1,transferFunction.xext[1],$PRE.transferFunction.xext[1],transferFunction.xext[2],$PRE.transferFunction.xext[2],transferFunction.x[1],$PRE.transferFunction.x[1],transferFunction.y,$PRE.transferFunction.y,unitDelay.firstTrigger,$PRE.unitDelay.firstTrigger,unitDelay.y,$PRE.unitDelay.y,firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,sampler.firstTrigger,$PRE.sampler.firstTrigger,$whenCondition8,sampler.sampleTrigger,$whenCondition1,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$whenCondition3,unitDelay.sampleTrigger,$whenCondition4,transferFunction.sampleTrigger,$whenCondition5,stateSpace.sampleTrigger,$whenCondition6,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition7,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,sampler.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000281/0.3852, allocations: 189.7 kB / 0.529 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.133e-05/0.3852, allocations: 34.14 kB / 0.529 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.207e-05/0.3853, allocations: 25.22 kB / 0.5291 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3853, allocations: 7.984 kB / 0.5291 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3853, allocations: 1.125 kB / 0.5291 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.612e-05/0.3854, allocations: 112.9 kB / 0.5292 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.777e-05/0.3855, allocations: 22.94 kB / 0.5292 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.3858, allocations: 25.62 kB / 0.5292 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.305e-05/0.3858, allocations: 25.84 kB / 0.5293 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009009/0.3868, allocations: 0.5297 MB / 0.5298 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008869/0.3877, allocations: 0.6154 MB / 0.5304 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002605/0.3879, allocations: 152.8 kB / 0.5305 GB, free: 12.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001598/0.3881, allocations: 149.2 kB / 0.5307 GB, free: 12.32 MB / 398.1 MB Notification: Performance of Backend: time 4.3e-07/0.3881, allocations: 5.188 kB / 0.5307 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006803/0.3888, allocations: 297.8 kB / 0.5309 GB, free: 12.15 MB / 398.1 MB Notification: Performance of SimCode: time 0.0009853/0.3898, allocations: 0.8622 MB / 0.5318 GB, free: 11.39 MB / 398.1 MB Notification: Performance of Templates: time 0.007489/0.3973, allocations: 3.234 MB / 0.5349 GB, free: 9.805 MB / 398.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches