Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 183.4 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.2 MB / 218.9 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008256/0.0008255, allocations: 84.53 kB / 267 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3454/0.3454, allocations: 43.47 MB / 358.6 MB, free: 51.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.161e-05/3.164e-05, allocations: 4 kB / 425.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1179, allocations: 58.85 MB / 484.2 MB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3746/0.4926, allocations: 87.91 MB / 0.5587 GB, free: 16.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.4928, allocations: 60.09 kB / 0.5587 GB, free: 16.23 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01085/0.5037, allocations: 3.953 MB / 0.5626 GB, free: 13.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5037, allocations: 0 / 0.5626 GB, free: 13.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.5038, allocations: 4 kB / 0.5626 GB, free: 13.89 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.0008253/0.5046, allocations: 0.564 MB / 0.5631 GB, free: 13.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.5046, allocations: 8.031 kB / 0.5631 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.5047, allocations: 36.59 kB / 0.5632 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.5049, allocations: 248.3 kB / 0.5634 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.505, allocations: 17.27 kB / 0.5634 GB, free: 13.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.505, allocations: 21.53 kB / 0.5634 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.5054, allocations: 220.1 kB / 0.5637 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.5054, allocations: 1.172 kB / 0.5637 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.5054, allocations: 9.5 kB / 0.5637 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.5054, allocations: 5.312 kB / 0.5637 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.5056, allocations: 123.1 kB / 0.5638 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009122/0.5065, allocations: 0.5551 MB / 0.5643 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/0.507, allocations: 310.7 kB / 0.5646 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.5072, allocations: 120.9 kB / 0.5647 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.5072, allocations: 9.641 kB / 0.5648 GB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.5075, allocations: 242.7 kB / 0.565 GB, free: 11.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.844e-06/0.5075, allocations: 0 / 0.565 GB, free: 11.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005852/0.5081, allocations: 440.6 kB / 0.5654 GB, free: 11.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.5082, allocations: 78.88 kB / 0.5655 GB, free: 11.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.5083, allocations: 191.1 kB / 0.5657 GB, free: 11.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.5083, allocations: 47.8 kB / 0.5657 GB, free: 11.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.5084, allocations: 130.6 kB / 0.5658 GB, free: 11.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.187e-05/0.5085, allocations: 98.3 kB / 0.5659 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.5085, allocations: 14.75 kB / 0.5659 GB, free: 11.21 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.196e-05/0.5086, allocations: 340.3 kB / 0.5663 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.5087, allocations: 89.28 kB / 0.5663 GB, free: 10.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001903/0.5089, allocations: 280.3 kB / 0.5666 GB, free: 10.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.5091, allocations: 146.5 kB / 0.5668 GB, free: 10.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5091, allocations: 0 / 0.5668 GB, free: 10.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004735/0.5096, allocations: 431.6 kB / 0.5672 GB, free: 10.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.5096, allocations: 8 kB / 0.5672 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.5096, allocations: 8 kB / 0.5672 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.5096, allocations: 10.81 kB / 0.5672 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.5098, allocations: 66.91 kB / 0.5673 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5098, allocations: 15.92 kB / 0.5673 GB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.51, allocations: 47.11 kB / 0.5673 GB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.51, allocations: 23.75 kB / 0.5673 GB, free: 9.938 MB / 394.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.0001013/0.5101, allocations: 167.7 kB / 0.5675 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.24e-05/0.5102, allocations: 31.67 kB / 0.5675 GB, free: 9.754 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.039e-05/0.5102, allocations: 32.89 kB / 0.5676 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.5102, allocations: 4 kB / 0.5676 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5103, allocations: 4 kB / 0.5676 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5103, allocations: 0 / 0.5676 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.5113, allocations: 0.9271 MB / 0.5685 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.5113, allocations: 0 / 0.5685 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.591e-05/0.5114, allocations: 15.98 kB / 0.5685 GB, free: 8.879 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5114, allocations: 0 / 0.5685 GB, free: 8.879 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.5115, allocations: 11.61 kB / 0.5685 GB, free: 8.871 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.5115, allocations: 4 kB / 0.5685 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.5115, allocations: 0 / 0.5685 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005273/0.512, allocations: 0.5448 MB / 0.569 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.144e-05/0.5121, allocations: 100.8 kB / 0.5691 GB, free: 8.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.327e-05/0.5121, allocations: 18.48 kB / 0.5691 GB, free: 8.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.5123, allocations: 35.2 kB / 0.5692 GB, free: 8.238 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.75e-05/0.5124, allocations: 27.72 kB / 0.5692 GB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.5124, allocations: 15.55 kB / 0.5692 GB, free: 8.203 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.766e-05/0.5125, allocations: 151 kB / 0.5694 GB, free: 8.074 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5125, allocations: 0 / 0.5694 GB, free: 8.074 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.5129, allocations: 76.48 kB / 0.5694 GB, free: 8.012 MB / 394.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.0001265/0.513, allocations: 126.2 kB / 0.5696 GB, free: 7.887 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004035/0.5134, allocations: 324.6 kB / 0.5699 GB, free: 7.641 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5134, allocations: 0 / 0.5699 GB, free: 7.641 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.5136, allocations: 161.5 kB / 0.57 GB, free: 7.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.5139, allocations: 30.55 kB / 0.5701 GB, free: 7.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000772/0.5147, allocations: 401.3 kB / 0.5704 GB, free: 7.133 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.5148, allocations: 0.768 MB / 0.5712 GB, free: 6.344 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.977e-05/0.5149, allocations: 36.47 kB / 0.5712 GB, free: 6.312 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.299e-05/0.515, allocations: 31.42 kB / 0.5713 GB, free: 6.281 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.515, allocations: 0 / 0.5713 GB, free: 6.281 MB / 394.7 MB Notification: Performance of Templates: time 0.004672/0.5197, allocations: 2.752 MB / 0.5739 GB, free: 3.566 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Discrete/Discrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches