Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 97.14 kB / 17 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001625/0.001624, allocations: 181.8 kB / 17.89 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.654/1.654, allocations: 223.3 MB / 241.9 MB, free: 296 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2588/0.2588, allocations: 44.25 MB / 337.3 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003775, allocations: 11.98 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.141, allocations: 61.92 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002039/0.1431, allocations: 1.307 MB / 472.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009658/0.1441, allocations: 0.5147 MB / 473.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.692e-05/0.1442, allocations: 8 kB / 473.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.1443, allocations: 3.938 kB / 473.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.347e-05/0.1443, allocations: 7.922 kB / 473.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.1447, allocations: 79.59 kB / 473.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.1449, allocations: 103.7 kB / 473.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.145, allocations: 27.97 kB / 473.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.193e-05/0.1451, allocations: 39.84 kB / 473.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.493e-05/0.1452, allocations: 31.78 kB / 473.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.1452, allocations: 7.984 kB / 473.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.345e-05/0.1452, allocations: 4 kB / 473.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.037e-05/0.1453, allocations: 7.984 kB / 473.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.668e-05/0.1453, allocations: 41.64 kB / 473.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.1454, allocations: 52.12 kB / 473.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.1454, allocations: 0 / 473.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1454, allocations: 0 / 473.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1455, allocations: 0 / 473.8 MB, free: 11.47 MB / 350.1 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.0007379/0.1462, allocations: 409.3 kB / 474.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.1463, allocations: 11.97 kB / 474.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.933e-05/0.1463, allocations: 15.81 kB / 474.2 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.1466, allocations: 190.9 kB / 474.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.1467, allocations: 8 kB / 474.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/0.1467, allocations: 15.95 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003096/0.147, allocations: 112.2 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.147, allocations: 0 / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.1471, allocations: 0 / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1471, allocations: 8 kB / 474.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.1473, allocations: 55.91 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008589/0.1482, allocations: 404.4 kB / 475 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.1485, allocations: 114.5 kB / 475.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.1487, allocations: 40.92 kB / 475.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.1487, allocations: 0 / 475.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003409/0.149, allocations: 115.2 kB / 475.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.1491, allocations: 0 / 475.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005321/0.1496, allocations: 149.5 kB / 475.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.1497, allocations: 59.36 kB / 475.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.1498, allocations: 150.3 kB / 475.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.1499, allocations: 25.7 kB / 475.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.605e-05/0.1499, allocations: 108.2 kB / 475.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.105e-05/0.15, allocations: 19.81 kB / 475.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.563e-06/0.15, allocations: 0 / 475.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.1502, allocations: 322.8 kB / 476.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.1503, allocations: 39.97 kB / 476.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.1504, allocations: 61.62 kB / 476.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.1506, allocations: 31.92 kB / 476.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.1506, allocations: 4 kB / 476.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002889/0.1509, allocations: 125.5 kB / 476.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1509, allocations: 8 kB / 476.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.1509, allocations: 0 / 476.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.1509, allocations: 0 / 476.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.151, allocations: 20.02 kB / 476.4 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.1511, allocations: 4 kB / 476.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.533e-05/0.1512, allocations: 35.92 kB / 476.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.1512, allocations: 4 kB / 476.4 MB, free: 8.637 MB / 350.1 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.0001252/0.1513, allocations: 120.8 kB / 476.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.047e-05/0.1513, allocations: 11.89 kB / 476.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.1514, allocations: 20.72 kB / 476.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1514, allocations: 0 / 476.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1514, allocations: 0 / 476.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1514, allocations: 0 / 476.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005379/0.152, allocations: 406.8 kB / 477 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.152, allocations: 3.938 kB / 477 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.574e-05/0.1521, allocations: 15.94 kB / 477 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.1521, allocations: 3.984 kB / 477 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.1521, allocations: 3.984 kB / 477 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1521, allocations: 0 / 477 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1521, allocations: 3.953 kB / 477 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004681/0.1526, allocations: 259.4 kB / 477.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.1527, allocations: 81.02 kB / 477.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.1527, allocations: 8.031 kB / 477.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.1528, allocations: 23.97 kB / 477.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-05/0.1529, allocations: 16.2 kB / 477.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.153, allocations: 8.062 kB / 477.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.387e-05/0.153, allocations: 111.2 kB / 477.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.153, allocations: 3.938 kB / 477.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.1533, allocations: 19.91 kB / 477.5 MB, free: 7.445 MB / 350.1 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.0001209/0.1534, allocations: 103.2 kB / 477.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003001/0.1537, allocations: 87.95 kB / 477.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1537, allocations: 0 / 477.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.1539, allocations: 51.91 kB / 477.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.1542, allocations: 16.06 kB / 477.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006274/0.1549, allocations: 249.2 kB / 478 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.1553, allocations: 0.7004 MB / 478.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.192e-05/0.1553, allocations: 8.547 kB / 478.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.1554, allocations: 15.44 kB / 478.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.305e-06/0.1554, allocations: 0 / 478.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of Templates: time 0.00442/0.1598, allocations: 1.022 MB / 479.8 MB, free: 5.141 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches