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.001713/0.001713, allocations: 108.4 kB / 17.03 MB, free: 5.66 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.001727/0.001728, allocations: 190.9 kB / 17.96 MB, free: 5.066 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.684/1.684, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2402/0.2402, allocations: 43.52 MB / 314.7 MB, free: 472 kB / 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.001556/0.001556, allocations: 77.97 kB / 384.2 MB, free: 56.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1392, allocations: 57.79 MB / 442 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003334/0.1426, allocations: 1.602 MB / 443.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.1437, allocations: 0.5931 MB / 444.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.1439, allocations: 3.938 kB / 444.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.144, allocations: 19.86 kB / 444.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.586e-05/0.1441, allocations: 11.88 kB / 444.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.1445, allocations: 94.86 kB / 444.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001678/0.1447, allocations: 111.8 kB / 444.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.1449, allocations: 31.92 kB / 444.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.058e-05/0.1449, allocations: 55.7 kB / 444.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.98e-05/0.145, allocations: 35.83 kB / 444.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.1451, allocations: 12 kB / 444.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.564e-05/0.1451, allocations: 8 kB / 444.5 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.447e-05/0.1451, allocations: 23.92 kB / 444.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.322e-05/0.1452, allocations: 39.73 kB / 444.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.1454, allocations: 83.7 kB / 444.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1454, allocations: 0 / 444.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1454, allocations: 0 / 444.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.1454, allocations: 4 kB / 444.7 MB, free: 3.379 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.0007152/0.1461, allocations: 426.9 kB / 445.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1462, allocations: 11.89 kB / 445.1 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.188e-05/0.1462, allocations: 16.84 kB / 445.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.1465, allocations: 196.2 kB / 445.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.1466, allocations: 8.375 kB / 445.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.1466, allocations: 4.375 kB / 445.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.1468, allocations: 106 kB / 445.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.1469, allocations: 3.938 kB / 445.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.1469, allocations: 4 kB / 445.4 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1469, allocations: 4 kB / 445.4 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.147, allocations: 51.95 kB / 445.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.1476, allocations: 384.4 kB / 445.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.1479, allocations: 98.52 kB / 446 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.737e-05/0.148, allocations: 40.91 kB / 446 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.1481, allocations: 3.984 kB / 446 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.1483, allocations: 99.34 kB / 446.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.344e-06/0.1483, allocations: 0 / 446.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.00041/0.1487, allocations: 153.6 kB / 446.3 MB, free: 1.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.1487, allocations: 59.34 kB / 446.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.58e-05/0.1488, allocations: 149.8 kB / 446.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.1489, allocations: 25.7 kB / 446.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.444e-05/0.1489, allocations: 96.14 kB / 446.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.1489, allocations: 35.7 kB / 446.6 MB, free: 1.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.745e-05/0.149, allocations: 21.72 kB / 446.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.63e-05/0.149, allocations: 318.8 kB / 446.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1492, allocations: 39.97 kB / 447 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.1493, allocations: 57.56 kB / 447 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.1495, allocations: 73.69 kB / 447.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1495, allocations: 0 / 447.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002291/0.1497, allocations: 117.5 kB / 447.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1497, allocations: 17.17 kB / 447.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.1497, allocations: 4.031 kB / 447.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1498, allocations: 0 / 447.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1499, allocations: 15.94 kB / 447.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1499, allocations: 3.984 kB / 447.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.33e-05/0.15, allocations: 15.98 kB / 447.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.15, allocations: 0 / 447.3 MB, free: 0.5352 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 9.123e-05/0.1501, allocations: 133.2 kB / 447.4 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.839e-05/0.1501, allocations: 15.75 kB / 447.4 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.007e-05/0.1502, allocations: 8.719 kB / 447.4 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1502, allocations: 4 kB / 447.4 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1502, allocations: 0 / 447.4 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1502, allocations: 3.984 kB / 447.4 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005016/0.1507, allocations: 390.4 kB / 447.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1507, allocations: 0 / 447.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.878e-05/0.1508, allocations: 15.98 kB / 447.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1508, allocations: 0 / 447.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.1508, allocations: 0 / 447.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.1508, allocations: 8 kB / 447.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1508, allocations: 0 / 447.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005314/0.1514, allocations: 251.2 kB / 448.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.804e-05/0.1515, allocations: 92.97 kB / 448.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.1515, allocations: 288 / 448.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.1517, allocations: 20.05 kB / 448.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.555e-05/0.1518, allocations: 23.91 kB / 448.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.1518, allocations: 3.938 kB / 448.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.541e-05/0.1519, allocations: 112.6 kB / 448.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1519, allocations: 0 / 448.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002315/0.1521, allocations: 12 kB / 448.4 MB, free: 15.36 MB / 334.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.0001286/0.1522, allocations: 107.2 kB / 448.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.1525, allocations: 87.83 kB / 448.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1525, allocations: 0 / 448.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.1527, allocations: 39.97 kB / 448.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.153, allocations: 16 kB / 448.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005644/0.1536, allocations: 231.4 kB / 448.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.154, allocations: 0.6963 MB / 449.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.393e-05/0.154, allocations: 12.42 kB / 449.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.1541, allocations: 19.42 kB / 449.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1541, allocations: 0 / 449.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of Templates: time 0.004704/0.1588, allocations: 1.243 MB / 450.8 MB, free: 12.87 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches