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.001091/0.001092, allocations: 175.8 kB / 16.76 MB, free: 5.047 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.495/1.495, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.00102/0.00102, allocations: 92.56 kB / 271.3 MB, free: 8.25 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.4028/0.4028, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005402/0.0005405, allocations: 19.98 kB / 432.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1274, allocations: 58.84 MB / 491.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4018/0.5292, allocations: 88.06 MB / 0.5659 GB, free: 13.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.5296, allocations: 59.97 kB / 0.566 GB, free: 13.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01156/0.5411, allocations: 3.966 MB / 0.5699 GB, free: 9.957 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5412, allocations: 4 kB / 0.5699 GB, free: 9.953 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.5412, allocations: 4 kB / 0.5699 GB, free: 9.949 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.001063/0.5422, allocations: 0.5926 MB / 0.5705 GB, free: 9.312 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.5423, allocations: 15.97 kB / 0.5705 GB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.5424, allocations: 28.56 kB / 0.5705 GB, free: 9.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.5426, allocations: 252.8 kB / 0.5707 GB, free: 8.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.5427, allocations: 20.36 kB / 0.5708 GB, free: 8.961 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.5427, allocations: 20.38 kB / 0.5708 GB, free: 8.941 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000408/0.5432, allocations: 241.9 kB / 0.571 GB, free: 8.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.5432, allocations: 192 / 0.571 GB, free: 8.699 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.5432, allocations: 7.938 kB / 0.571 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.5432, allocations: 8 kB / 0.571 GB, free: 8.684 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.5435, allocations: 131.9 kB / 0.5711 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009578/0.5445, allocations: 0.5641 MB / 0.5717 GB, free: 7.941 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.545, allocations: 314.8 kB / 0.572 GB, free: 7.625 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.5452, allocations: 125.7 kB / 0.5721 GB, free: 7.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.5452, allocations: 15.98 kB / 0.5721 GB, free: 7.484 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000409/0.5456, allocations: 244.2 kB / 0.5724 GB, free: 7.234 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.884e-06/0.5456, allocations: 0 / 0.5724 GB, free: 7.234 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0009452/0.5466, allocations: 0.5634 MB / 0.5729 GB, free: 6.664 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.5467, allocations: 79.39 kB / 0.573 GB, free: 6.574 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.5469, allocations: 208.8 kB / 0.5732 GB, free: 6.363 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.5469, allocations: 41.7 kB / 0.5732 GB, free: 6.316 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.527e-05/0.547, allocations: 136.9 kB / 0.5734 GB, free: 6.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.565e-05/0.5471, allocations: 102.8 kB / 0.5735 GB, free: 6.078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.157e-05/0.5472, allocations: 15.94 kB / 0.5735 GB, free: 6.062 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.5473, allocations: 342.8 kB / 0.5738 GB, free: 5.719 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.5475, allocations: 101.1 kB / 0.5739 GB, free: 5.621 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.5478, allocations: 293.4 kB / 0.5742 GB, free: 5.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005042/0.5483, allocations: 426.7 kB / 0.5746 GB, free: 4.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.5483, allocations: 8 kB / 0.5746 GB, free: 4.742 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006446/0.549, allocations: 445 kB / 0.575 GB, free: 4.301 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.549, allocations: 8 kB / 0.575 GB, free: 4.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.549, allocations: 8 kB / 0.575 GB, free: 4.285 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.5491, allocations: 8 kB / 0.575 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.5493, allocations: 63.84 kB / 0.5751 GB, free: 4.215 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.5493, allocations: 11.94 kB / 0.5751 GB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.5495, allocations: 44.11 kB / 0.5752 GB, free: 4.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.5496, allocations: 24 kB / 0.5752 GB, free: 4.137 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 () * 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.0002034/0.5498, allocations: 197.7 kB / 0.5754 GB, free: 3.934 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.5498, allocations: 31.62 kB / 0.5754 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.613e-05/0.5499, allocations: 30.98 kB / 0.5754 GB, free: 3.871 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.5499, allocations: 4 kB / 0.5754 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.5499, allocations: 4 kB / 0.5754 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.5499, allocations: 3.938 kB / 0.5754 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.5513, allocations: 0.9448 MB / 0.5764 GB, free: 2.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5513, allocations: 0 / 0.5764 GB, free: 2.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.647e-05/0.5514, allocations: 15.98 kB / 0.5764 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.5514, allocations: 0 / 0.5764 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.5514, allocations: 15.98 kB / 0.5764 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.5514, allocations: 7.938 kB / 0.5764 GB, free: 2.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.5514, allocations: 4.688 kB / 0.5764 GB, free: 2.816 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007214/0.5522, allocations: 0.5617 MB / 0.577 GB, free: 2.238 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.487e-05/0.5522, allocations: 100.8 kB / 0.577 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.523e-05/0.5523, allocations: 19.98 kB / 0.5771 GB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.5525, allocations: 35.97 kB / 0.5771 GB, free: 2.066 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.854e-05/0.5526, allocations: 31.94 kB / 0.5771 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.5526, allocations: 19.98 kB / 0.5772 GB, free: 2.016 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001149/0.5528, allocations: 148.5 kB / 0.5773 GB, free: 1.871 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5528, allocations: 0 / 0.5773 GB, free: 1.871 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003753/0.5532, allocations: 72 kB / 0.5774 GB, free: 1.801 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) * 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.0001645/0.5533, allocations: 135.1 kB / 0.5775 GB, free: 1.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005447/0.5539, allocations: 332.8 kB / 0.5778 GB, free: 1.336 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.5539, allocations: 0 / 0.5778 GB, free: 1.336 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.5541, allocations: 172.4 kB / 0.578 GB, free: 1.168 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.5545, allocations: 55.08 kB / 0.578 GB, free: 1.117 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.5556, allocations: 0.573 MB / 0.5786 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.5559, allocations: 0.7608 MB / 0.5793 GB, free: 15.74 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.425e-05/0.556, allocations: 34.97 kB / 0.5794 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.282e-05/0.5561, allocations: 27.42 kB / 0.5794 GB, free: 15.68 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5561, allocations: 0 / 0.5794 GB, free: 15.68 MB / 410.7 MB Notification: Performance of Templates: time 0.005853/0.562, allocations: 2.764 MB / 0.5821 GB, free: 12.94 MB / 410.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/jenkins1/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