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.002412/0.002417, allocations: 182.4 kB / 16.4 MB, free: 5.75 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.281/2.281, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001153/0.001152, allocations: 97.47 kB / 270.9 MB, free: 8.363 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.5439/0.5439, allocations: 43.56 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004879/0.0004878, allocations: 12 kB / 431.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1414, allocations: 58.85 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002484/0.144, allocations: 1.314 MB / 491.5 MB, free: 9.918 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.1455, allocations: 0.5545 MB / 492.1 MB, free: 9.355 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.1456, allocations: 0 / 492.1 MB, free: 9.355 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.591e-05/0.1456, allocations: 3.938 kB / 492.1 MB, free: 9.352 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.1458, allocations: 19.91 kB / 492.1 MB, free: 9.332 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004435/0.1462, allocations: 67.84 kB / 492.2 MB, free: 9.266 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.1465, allocations: 67.86 kB / 492.2 MB, free: 9.199 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1466, allocations: 27.97 kB / 492.3 MB, free: 9.172 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.1468, allocations: 43.83 kB / 492.3 MB, free: 9.129 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.645e-05/0.1469, allocations: 27.84 kB / 492.3 MB, free: 9.102 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.1469, allocations: 4 kB / 492.3 MB, free: 9.098 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.044e-05/0.1469, allocations: 4 kB / 492.3 MB, free: 9.094 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.807e-05/0.147, allocations: 11.92 kB / 492.3 MB, free: 9.082 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.288e-05/0.147, allocations: 41.64 kB / 492.4 MB, free: 9.035 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.1472, allocations: 60.09 kB / 492.4 MB, free: 8.977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1472, allocations: 0 / 492.4 MB, free: 8.977 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1472, allocations: 4 kB / 492.5 MB, free: 8.973 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1472, allocations: 0 / 492.5 MB, free: 8.973 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.0009504/0.1482, allocations: 399 kB / 492.8 MB, free: 8.535 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.1483, allocations: 8.031 kB / 492.9 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.1483, allocations: 15.86 kB / 492.9 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.1486, allocations: 206.7 kB / 493.1 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.1487, allocations: 8 kB / 493.1 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.1487, allocations: 11.98 kB / 493.1 MB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004563/0.1492, allocations: 113.2 kB / 493.2 MB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1492, allocations: 4 kB / 493.2 MB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.1493, allocations: 0 / 493.2 MB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.1493, allocations: 4 kB / 493.2 MB, free: 8.129 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002874/0.1496, allocations: 55.92 kB / 493.3 MB, free: 8.074 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.1507, allocations: 404.4 kB / 493.7 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006267/0.1513, allocations: 122.5 kB / 493.8 MB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.1514, allocations: 3.938 kB / 493.8 MB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004652/0.1518, allocations: 103.6 kB / 493.9 MB, free: 7.383 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 2.835e-06/0.1519, allocations: 0 / 493.9 MB, free: 7.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008003/0.1527, allocations: 153.5 kB / 494 MB, free: 7.227 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.1528, allocations: 59.34 kB / 494.1 MB, free: 7.156 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.153, allocations: 150.3 kB / 494.2 MB, free: 7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.153, allocations: 29.7 kB / 494.3 MB, free: 6.965 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.1531, allocations: 166.7 kB / 494.4 MB, free: 6.801 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.581e-05/0.1532, allocations: 15.8 kB / 494.4 MB, free: 6.785 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-06/0.1532, allocations: 4 kB / 494.4 MB, free: 6.781 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1534, allocations: 314.8 kB / 494.8 MB, free: 6.465 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.1536, allocations: 39.97 kB / 494.8 MB, free: 6.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.1539, allocations: 49.7 kB / 494.8 MB, free: 6.371 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/0.1541, allocations: 43.97 kB / 494.9 MB, free: 6.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.1541, allocations: 3.953 kB / 494.9 MB, free: 6.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000519/0.1547, allocations: 121.7 kB / 495 MB, free: 6.199 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1547, allocations: 4.094 kB / 495 MB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.1547, allocations: 3.938 kB / 495 MB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1547, allocations: 3.938 kB / 495 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.1549, allocations: 23.98 kB / 495 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.1549, allocations: 0 / 495 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.1551, allocations: 24.06 kB / 495.1 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.1552, allocations: 4 kB / 495.1 MB, free: 6.137 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,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked 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 0.0001374/0.1553, allocations: 117.8 kB / 495.2 MB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.1554, allocations: 15.86 kB / 495.2 MB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.1554, allocations: 16.7 kB / 495.2 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1554, allocations: 0 / 495.2 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1554, allocations: 4 kB / 495.2 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1555, allocations: 4 kB / 495.2 MB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008705/0.1563, allocations: 398.3 kB / 495.6 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.1564, allocations: 7.984 kB / 495.6 MB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.1565, allocations: 12 kB / 495.6 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.1566, allocations: 0 / 495.6 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.1566, allocations: 0 / 495.6 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.1566, allocations: 7.984 kB / 495.6 MB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1566, allocations: 3.938 kB / 495.6 MB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008291/0.1575, allocations: 263.3 kB / 495.9 MB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-05/0.1576, allocations: 93.11 kB / 496 MB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.1576, allocations: 0 / 496 MB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.1579, allocations: 23.97 kB / 496 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.807e-05/0.1579, allocations: 11.98 kB / 496 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.158, allocations: 7.984 kB / 496 MB, free: 5.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00012/0.1581, allocations: 107.8 kB / 496.1 MB, free: 4.965 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1581, allocations: 4 kB / 496.1 MB, free: 4.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.1585, allocations: 16 kB / 496.2 MB, free: 4.945 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 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * 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.0001385/0.1586, allocations: 95.23 kB / 496.3 MB, free: 4.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005285/0.1592, allocations: 96.34 kB / 496.3 MB, free: 4.746 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.1592, allocations: 0 / 496.3 MB, free: 4.746 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.1594, allocations: 43.98 kB / 496.4 MB, free: 4.703 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.1598, allocations: 23.88 kB / 496.4 MB, free: 4.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007832/0.1606, allocations: 274.9 kB / 496.7 MB, free: 4.379 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.161, allocations: 0.7122 MB / 497.4 MB, free: 3.641 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.047e-05/0.1611, allocations: 11.44 kB / 497.4 MB, free: 3.633 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.1611, allocations: 3.938 kB / 497.4 MB, free: 3.629 MB / 378.7 MB Notification: Performance of Templates: time 0.004422/0.1655, allocations: 1.294 MB / 498.7 MB, free: 2.336 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