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.001277/0.001277, allocations: 107.3 kB / 18.4 MB, free: 4.566 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.00122/0.00122, allocations: 188 kB / 19.34 MB, free: 3.641 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.459/1.459, allocations: 222.9 MB / 243 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2192/0.2192, allocations: 44.19 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 66.61 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1336, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003077/0.1367, allocations: 1.618 MB / 472.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009185/0.1377, allocations: 0.5494 MB / 472.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.276e-05/0.1378, allocations: 11.88 kB / 472.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.1379, allocations: 15.86 kB / 472.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.787e-05/0.138, allocations: 7.875 kB / 472.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003511/0.1383, allocations: 91.56 kB / 473 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.1385, allocations: 107.8 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.1387, allocations: 39.91 kB / 473.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.92e-05/0.1388, allocations: 47.83 kB / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.611e-05/0.1389, allocations: 43.77 kB / 473.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.1389, allocations: 8 kB / 473.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.512e-05/0.1389, allocations: 8 kB / 473.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.228e-05/0.1389, allocations: 19.92 kB / 473.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.104e-05/0.139, allocations: 39.8 kB / 473.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.1392, allocations: 91.58 kB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.1392, allocations: 4 kB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1392, allocations: 0 / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1392, allocations: 0 / 473.4 MB, free: 10.96 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.0006776/0.1399, allocations: 407.2 kB / 473.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1399, allocations: 15.97 kB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.14, allocations: 8.844 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.1403, allocations: 212 kB / 474 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.1403, allocations: 8.375 kB / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.1403, allocations: 8.375 kB / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.1407, allocations: 97.95 kB / 474.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1408, allocations: 0 / 474.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.1408, allocations: 11.94 kB / 474.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.1408, allocations: 4 kB / 474.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.141, allocations: 59.89 kB / 474.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007246/0.1417, allocations: 380.4 kB / 474.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.142, allocations: 102.5 kB / 474.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.1421, allocations: 44.91 kB / 474.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.1422, allocations: 0 / 474.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002385/0.1424, allocations: 95.34 kB / 474.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.1424, allocations: 0 / 474.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004543/0.1429, allocations: 145.5 kB / 475 MB, free: 9.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.143, allocations: 59.34 kB / 475 MB, free: 9.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.1431, allocations: 152 kB / 475.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.1431, allocations: 25.7 kB / 475.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.1432, allocations: 104 kB / 475.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.1432, allocations: 23.78 kB / 475.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.1433, allocations: 21.72 kB / 475.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1434, allocations: 322.8 kB / 475.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1435, allocations: 35.97 kB / 475.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.1437, allocations: 53.69 kB / 475.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.1439, allocations: 73.62 kB / 475.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1439, allocations: 0 / 475.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002773/0.1442, allocations: 125.7 kB / 475.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1442, allocations: 15.41 kB / 475.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1442, allocations: 3.938 kB / 476 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.1442, allocations: 4 kB / 476 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1443, allocations: 15.92 kB / 476 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.1443, allocations: 4 kB / 476 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.843e-05/0.1444, allocations: 24 kB / 476 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.1445, allocations: 8 kB / 476 MB, free: 8.109 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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.1446, allocations: 113.8 kB / 476.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.056e-05/0.1446, allocations: 11.84 kB / 476.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.159e-05/0.1447, allocations: 12.72 kB / 476.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1447, allocations: 0 / 476.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.1447, allocations: 3.984 kB / 476.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1447, allocations: 0 / 476.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.1452, allocations: 390.4 kB / 476.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1452, allocations: 0 / 476.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.484e-05/0.1453, allocations: 19.97 kB / 476.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.1453, allocations: 4 kB / 476.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.1453, allocations: 4 kB / 476.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1453, allocations: 0 / 476.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1453, allocations: 0 / 476.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004386/0.1458, allocations: 259.2 kB / 476.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.1459, allocations: 85 kB / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/0.1459, allocations: 4.031 kB / 476.9 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.146, allocations: 15.98 kB / 476.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.1461, allocations: 19.97 kB / 476.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.1462, allocations: 4 kB / 476.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.463e-05/0.1462, allocations: 108.4 kB / 477 MB, free: 6.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1462, allocations: 0 / 477 MB, free: 6.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002281/0.1465, allocations: 20.06 kB / 477.1 MB, free: 6.957 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001361/0.1466, allocations: 99.23 kB / 477.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002814/0.1469, allocations: 83.83 kB / 477.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.1469, allocations: 0 / 477.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.1471, allocations: 52.44 kB / 477.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.1474, allocations: 22.78 kB / 477.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005841/0.148, allocations: 227.2 kB / 477.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.1483, allocations: 0.7041 MB / 478.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.593e-05/0.1484, allocations: 8.547 kB / 478.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.1484, allocations: 11.44 kB / 478.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1484, allocations: 0 / 478.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of Templates: time 0.004242/0.1527, allocations: 1.249 MB / 479.5 MB, free: 4.457 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches