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.001332/0.001332, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008221/0.0008221, allocations: 86.67 kB / 261.7 MB, free: 1.688 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.2364/0.2364, allocations: 43.5 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.341e-05/1.343e-05, allocations: 4 kB / 418.3 MB, free: 28.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 58.85 MB / 477.1 MB, free: 1.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3892/0.5003, allocations: 87.25 MB / 0.5511 GB, free: 7.793 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001456/0.5005, allocations: 71.42 kB / 0.5512 GB, free: 7.758 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01029/0.5108, allocations: 3.91 MB / 0.555 GB, free: 4.531 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.5109, allocations: 0 / 0.555 GB, free: 4.531 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.5109, allocations: 4 kB / 0.555 GB, free: 4.527 MB / 362.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.0008898/0.5118, allocations: 0.5602 MB / 0.5556 GB, free: 3.945 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.5118, allocations: 8.031 kB / 0.5556 GB, free: 3.938 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.982e-05/0.5119, allocations: 35.78 kB / 0.5556 GB, free: 3.902 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.5122, allocations: 245.3 kB / 0.5558 GB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.5122, allocations: 8 kB / 0.5559 GB, free: 3.629 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/0.5122, allocations: 23.55 kB / 0.5559 GB, free: 3.609 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002144/0.5125, allocations: 106.7 kB / 0.556 GB, free: 3.539 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.5128, allocations: 204.1 kB / 0.5562 GB, free: 3.379 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.5128, allocations: 0 / 0.5562 GB, free: 3.379 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.5128, allocations: 3.984 kB / 0.5562 GB, free: 3.375 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.5128, allocations: 8 kB / 0.5562 GB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007957/0.5136, allocations: 0.5174 MB / 0.5567 GB, free: 2.891 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.514, allocations: 281.8 kB / 0.557 GB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.5141, allocations: 107.7 kB / 0.5571 GB, free: 2.625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.5142, allocations: 11.55 kB / 0.5571 GB, free: 2.617 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.5145, allocations: 238.2 kB / 0.5573 GB, free: 2.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 2.895e-06/0.5145, allocations: 0 / 0.5573 GB, free: 2.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005636/0.515, allocations: 418.1 kB / 0.5577 GB, free: 2.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.5151, allocations: 71.08 kB / 0.5578 GB, free: 2.012 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.5152, allocations: 183.1 kB / 0.5579 GB, free: 1.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.742e-05/0.5153, allocations: 37.12 kB / 0.558 GB, free: 1.809 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.5154, allocations: 126.8 kB / 0.5581 GB, free: 1.703 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.98e-05/0.5155, allocations: 98.42 kB / 0.5582 GB, free: 1.629 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.5155, allocations: 0 / 0.5582 GB, free: 1.629 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.5156, allocations: 348.8 kB / 0.5585 GB, free: 1.293 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.5157, allocations: 84.11 kB / 0.5586 GB, free: 1.238 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.5159, allocations: 259.8 kB / 0.5589 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.5161, allocations: 126.2 kB / 0.559 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.5161, allocations: 0 / 0.559 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004837/0.5166, allocations: 368.7 kB / 0.5593 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.5166, allocations: 8 kB / 0.5593 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.5166, allocations: 7.953 kB / 0.5593 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.5167, allocations: 15.94 kB / 0.5594 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.5169, allocations: 66.09 kB / 0.5594 GB, free: 460 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.5169, allocations: 8 kB / 0.5594 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.5171, allocations: 39.67 kB / 0.5595 GB, free: 412 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.5171, allocations: 23.95 kB / 0.5595 GB, free: 392 kB / 362.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.0001142/0.5172, allocations: 157.6 kB / 0.5596 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.5172, allocations: 27.66 kB / 0.5597 GB, free: 208 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.013e-05/0.5173, allocations: 28.77 kB / 0.5597 GB, free: 192 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.5173, allocations: 11.95 kB / 0.5597 GB, free: 180 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.5173, allocations: 0 / 0.5597 GB, free: 180 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.5173, allocations: 0 / 0.5597 GB, free: 180 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.5186, allocations: 0.8694 MB / 0.5605 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5186, allocations: 0 / 0.5605 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.358e-05/0.5187, allocations: 15.94 kB / 0.5606 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.5187, allocations: 3.984 kB / 0.5606 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.5187, allocations: 11.92 kB / 0.5606 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.5188, allocations: 0 / 0.5606 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.5188, allocations: 8 kB / 0.5606 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006877/0.5195, allocations: 0.5147 MB / 0.5611 GB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/0.5195, allocations: 96.83 kB / 0.5612 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.5196, allocations: 15.8 kB / 0.5612 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.5198, allocations: 27.97 kB / 0.5612 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.472e-05/0.5199, allocations: 27.83 kB / 0.5613 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.52, allocations: 19.92 kB / 0.5613 GB, free: 14.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001138/0.5201, allocations: 144 kB / 0.5614 GB, free: 14.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5201, allocations: 4 kB / 0.5614 GB, free: 14.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003757/0.5205, allocations: 67.7 kB / 0.5615 GB, free: 14.56 MB / 378.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.0001568/0.5206, allocations: 124.2 kB / 0.5616 GB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004294/0.5211, allocations: 288.3 kB / 0.5619 GB, free: 14.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5211, allocations: 0 / 0.5619 GB, free: 14.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.5213, allocations: 146.8 kB / 0.562 GB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.5216, allocations: 31.61 kB / 0.562 GB, free: 14.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009589/0.5226, allocations: 393 kB / 0.5624 GB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.523, allocations: 0.7755 MB / 0.5632 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.5231, allocations: 35.28 kB / 0.5632 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.64e-05/0.5232, allocations: 35.36 kB / 0.5632 GB, free: 12.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5232, allocations: 0 / 0.5632 GB, free: 12.86 MB / 378.7 MB Notification: Performance of Templates: time 0.006234/0.5294, allocations: 2.615 MB / 0.5658 GB, free: 10.28 MB / 378.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