Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 102.6 kB / 16.27 MB, free: 5.93 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.001132/0.001132, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.807/1.807, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2444/0.2444, allocations: 43.53 MB / 313.9 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 73.45 kB / 382.7 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1341, allocations: 57.79 MB / 440.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.004092/0.1383, allocations: 1.618 MB / 442.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1395, allocations: 0.593 MB / 442.7 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.1398, allocations: 4 kB / 442.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.14, allocations: 11.86 kB / 442.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.667e-05/0.1401, allocations: 11.88 kB / 442.7 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.1405, allocations: 95.69 kB / 442.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001877/0.1407, allocations: 111.8 kB / 442.9 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.1409, allocations: 31.91 kB / 443 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.141, allocations: 51.78 kB / 443 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.01e-05/0.1411, allocations: 35.84 kB / 443.1 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.1411, allocations: 12 kB / 443.1 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.711e-05/0.1412, allocations: 11.94 kB / 443.1 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.959e-05/0.1412, allocations: 23.92 kB / 443.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.706e-05/0.1413, allocations: 43.72 kB / 443.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.1415, allocations: 83.75 kB / 443.2 MB, free: 4.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1415, allocations: 0 / 443.2 MB, free: 4.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1415, allocations: 0 / 443.2 MB, free: 4.156 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1415, allocations: 0 / 443.2 MB, free: 4.156 MB / 318.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.0007751/0.1423, allocations: 419 kB / 443.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.1423, allocations: 15.89 kB / 443.7 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.599e-05/0.1424, allocations: 12.78 kB / 443.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.1427, allocations: 199.4 kB / 443.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.1427, allocations: 8.375 kB / 443.9 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.1428, allocations: 4.375 kB / 443.9 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.1431, allocations: 109.9 kB / 444 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1431, allocations: 0 / 444 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.1431, allocations: 4 kB / 444 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1431, allocations: 4 kB / 444 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.1433, allocations: 51.89 kB / 444 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.1441, allocations: 396.4 kB / 444.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.1444, allocations: 98.52 kB / 444.5 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1445, allocations: 36.92 kB / 444.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.1445, allocations: 0 / 444.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003414/0.1449, allocations: 95.36 kB / 444.7 MB, free: 2.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.1449, allocations: 4 kB / 444.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004811/0.1454, allocations: 141.4 kB / 444.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.1454, allocations: 59.34 kB / 444.9 MB, free: 2.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.1455, allocations: 149.8 kB / 445 MB, free: 2.195 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.1456, allocations: 29.7 kB / 445 MB, free: 2.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.796e-05/0.1456, allocations: 104.1 kB / 445.1 MB, free: 2.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.1457, allocations: 19.8 kB / 445.2 MB, free: 2.035 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.336e-05/0.1457, allocations: 29.7 kB / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.1458, allocations: 314.8 kB / 445.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1459, allocations: 43.97 kB / 445.5 MB, free: 1.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.146, allocations: 49.62 kB / 445.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.1462, allocations: 81.81 kB / 445.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1462, allocations: 3.984 kB / 445.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000279/0.1465, allocations: 117.5 kB / 445.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1466, allocations: 11.94 kB / 445.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1466, allocations: 0 / 445.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1466, allocations: 4.031 kB / 445.8 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.1467, allocations: 19.92 kB / 445.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1467, allocations: 0 / 445.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.089e-05/0.1468, allocations: 15.98 kB / 445.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.1468, allocations: 3.938 kB / 445.8 MB, free: 1.32 MB / 318.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 8.035e-05/0.1469, allocations: 125.8 kB / 446 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.1469, allocations: 19.75 kB / 446 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.142e-05/0.147, allocations: 12.7 kB / 446 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.147, allocations: 4 kB / 446 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.147, allocations: 0 / 446 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.147, allocations: 0 / 446 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.1475, allocations: 394.4 kB / 446.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1475, allocations: 0 / 446.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.968e-05/0.1476, allocations: 11.98 kB / 446.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1476, allocations: 0 / 446.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.1476, allocations: 4 kB / 446.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.1476, allocations: 4 kB / 446.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1476, allocations: 0 / 446.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.1481, allocations: 251.2 kB / 446.6 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.88e-05/0.1481, allocations: 88.98 kB / 446.7 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.1481, allocations: 0 / 446.7 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.1483, allocations: 20.03 kB / 446.8 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.1483, allocations: 19.98 kB / 446.8 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.1483, allocations: 0 / 446.8 MB, free: 288 kB / 318.1 MB Notification: Performance of sorting global known variables: time 6.447e-05/0.1484, allocations: 116.6 kB / 446.9 MB, free: 172 kB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1484, allocations: 96 / 446.9 MB, free: 172 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002291/0.1487, allocations: 15.94 kB / 446.9 MB, free: 156 kB / 318.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 9.965e-05/0.1488, allocations: 99.25 kB / 447 MB, free: 48 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003269/0.1491, allocations: 87.83 kB / 447.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1491, allocations: 0 / 447.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.1493, allocations: 44.44 kB / 447.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.1496, allocations: 26.11 kB / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006118/0.1502, allocations: 223.4 kB / 447.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.1505, allocations: 0.6963 MB / 448.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.804e-05/0.1506, allocations: 20.41 kB / 448.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.713e-05/0.1507, allocations: 11.44 kB / 448.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1507, allocations: 0 / 448.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of Templates: time 0.005172/0.1558, allocations: 1.251 MB / 449.3 MB, free: 13.66 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches