Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001511, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001177/0.001176, allocations: 94.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2745/0.2745, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.16e-05/3.169e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 58.85 MB / 484.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4705/0.588, allocations: 86.35 MB / 0.5571 GB, free: 1.277 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.5883, allocations: 65.89 kB / 0.5572 GB, free: 1.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01383/0.6021, allocations: 2.907 MB / 0.56 GB, free: 14.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.497e-06/0.6022, allocations: 4 kB / 0.56 GB, free: 14.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.6022, allocations: 7.938 kB / 0.56 GB, free: 14.73 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009144/0.6031, allocations: 417.1 kB / 0.5604 GB, free: 14.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.6032, allocations: 8.031 kB / 0.5604 GB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.565e-05/0.6033, allocations: 11.91 kB / 0.5604 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.6037, allocations: 205.7 kB / 0.5606 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.6037, allocations: 7.5 kB / 0.5606 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.341e-05/0.6038, allocations: 11.94 kB / 0.5607 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.604, allocations: 83.48 kB / 0.5607 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.604, allocations: 0 / 0.5607 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.6041, allocations: 3.875 kB / 0.5607 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.6041, allocations: 0 / 0.5607 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.6042, allocations: 33.81 kB / 0.5608 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008617/0.6051, allocations: 381.8 kB / 0.5611 GB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.6053, allocations: 56.19 kB / 0.5612 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.951e-05/0.6053, allocations: 16.39 kB / 0.5612 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.6054, allocations: 7.938 kB / 0.5612 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001903/0.6056, allocations: 82.77 kB / 0.5613 GB, free: 13.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 4.659e-06/0.6056, allocations: 3.984 kB / 0.5613 GB, free: 13.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002728/0.6059, allocations: 68.92 kB / 0.5614 GB, free: 13.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.6059, allocations: 55.39 kB / 0.5614 GB, free: 13.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.6061, allocations: 131.4 kB / 0.5615 GB, free: 13.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.6061, allocations: 25.7 kB / 0.5616 GB, free: 13.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.583e-05/0.6062, allocations: 173 kB / 0.5617 GB, free: 12.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.021e-05/0.6063, allocations: 23.86 kB / 0.5618 GB, free: 12.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-06/0.6063, allocations: 3.188 kB / 0.5618 GB, free: 12.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.6065, allocations: 310.8 kB / 0.5621 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.695e-05/0.6066, allocations: 22.94 kB / 0.5621 GB, free: 12.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.951e-05/0.6066, allocations: 31.78 kB / 0.5621 GB, free: 12.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.006e-05/0.6067, allocations: 23.61 kB / 0.5621 GB, free: 12.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.6067, allocations: 4 kB / 0.5621 GB, free: 12.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002164/0.607, allocations: 78.56 kB / 0.5622 GB, free: 12.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.607, allocations: 7.438 kB / 0.5622 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.607, allocations: 3.953 kB / 0.5622 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.607, allocations: 0 / 0.5622 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.6072, allocations: 23.92 kB / 0.5622 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.6073, allocations: 0 / 0.5622 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.6074, allocations: 26.98 kB / 0.5623 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.6075, allocations: 4 kB / 0.5623 GB, free: 12.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.743e-05/0.6076, allocations: 108.9 kB / 0.5624 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.6076, allocations: 7.906 kB / 0.5624 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.508e-05/0.6077, allocations: 15.5 kB / 0.5624 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.6077, allocations: 3.953 kB / 0.5624 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.6077, allocations: 3.984 kB / 0.5624 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.6077, allocations: 4 kB / 0.5624 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005481/0.6083, allocations: 360.1 kB / 0.5627 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.6083, allocations: 0 / 0.5627 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.6085, allocations: 11.98 kB / 0.5628 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.759e-06/0.6085, allocations: 7.953 kB / 0.5628 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.6085, allocations: 0 / 0.5628 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.6085, allocations: 0 / 0.5628 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.6085, allocations: 3.938 kB / 0.5628 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.6089, allocations: 198.6 kB / 0.563 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/0.609, allocations: 92.94 kB / 0.563 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.609, allocations: 7.266 kB / 0.5631 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.6092, allocations: 19.98 kB / 0.5631 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.6093, allocations: 20.03 kB / 0.5631 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.6094, allocations: 2.875 kB / 0.5631 GB, free: 11.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001113/0.6095, allocations: 110.1 kB / 0.5632 GB, free: 11.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6095, allocations: 0 / 0.5632 GB, free: 11.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003082/0.6098, allocations: 19.38 kB / 0.5632 GB, free: 11.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001526/0.61, allocations: 103.2 kB / 0.5633 GB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001842/0.6102, allocations: 49.31 kB / 0.5634 GB, free: 11.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.6102, allocations: 0 / 0.5634 GB, free: 11.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.274e-05/0.6103, allocations: 30.55 kB / 0.5634 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.6107, allocations: 11.5 kB / 0.5634 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004862/0.6112, allocations: 173.5 kB / 0.5636 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.6115, allocations: 0.7041 MB / 0.5643 GB, free: 10.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.939e-05/0.6116, allocations: 15.44 kB / 0.5643 GB, free: 10.29 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6116, allocations: 4 kB / 0.5643 GB, free: 10.29 MB / 378.7 MB Notification: Performance of Templates: time 0.003956/0.6155, allocations: 1.318 MB / 0.5656 GB, free: 8.988 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches