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.006065/0.006065, allocations: 100.8 kB / 15.87 MB, free: 6.309 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.001392/0.001391, allocations: 195.8 kB / 16.79 MB, free: 6.238 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.505/1.505, allocations: 205.1 MB / 222.6 MB, free: 4.945 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3682/0.3682, allocations: 43.51 MB / 313.5 MB, free: 8.645 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.001516/0.001516, allocations: 63.91 kB / 382 MB, free: 9.039 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1462, allocations: 57.78 MB / 439.8 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003477/0.1498, allocations: 1.681 MB / 441.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.1509, allocations: 0.5893 MB / 442.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.151, allocations: 7.938 kB / 442.1 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.1512, allocations: 7.922 kB / 442.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.643e-05/0.1512, allocations: 11.92 kB / 442.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.1517, allocations: 79.84 kB / 442.2 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.1518, allocations: 107.7 kB / 442.3 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.152, allocations: 40.19 kB / 442.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.118e-05/0.1521, allocations: 43.84 kB / 442.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.999e-05/0.1522, allocations: 39.77 kB / 442.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.1523, allocations: 4 kB / 442.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.849e-05/0.1523, allocations: 4 kB / 442.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.652e-05/0.1523, allocations: 19.92 kB / 442.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.701e-05/0.1524, allocations: 31.8 kB / 442.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001997/0.1526, allocations: 79.69 kB / 442.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.1527, allocations: 4 kB / 442.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1527, allocations: 0 / 442.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1527, allocations: 0 / 442.6 MB, free: 12.39 MB / 382.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.0009681/0.1536, allocations: 423 kB / 443 MB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.162e-05/0.1537, allocations: 8.031 kB / 443 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.021e-05/0.1538, allocations: 12.84 kB / 443 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.1541, allocations: 196.2 kB / 443.2 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.1542, allocations: 8.375 kB / 443.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.439e-05/0.1542, allocations: 8.375 kB / 443.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.1545, allocations: 106 kB / 443.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.1546, allocations: 0 / 443.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.1546, allocations: 11.91 kB / 443.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.1546, allocations: 0 / 443.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.1548, allocations: 51.97 kB / 443.4 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008876/0.1557, allocations: 384.4 kB / 443.7 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.1561, allocations: 110.4 kB / 443.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.1562, allocations: 32.92 kB / 443.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.1562, allocations: 0 / 443.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/0.1566, allocations: 107.3 kB / 444 MB, free: 10.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.1566, allocations: 0 / 444 MB, free: 10.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005184/0.1572, allocations: 149.5 kB / 444.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.1573, allocations: 55.34 kB / 444.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.1574, allocations: 149.7 kB / 444.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.1574, allocations: 29.7 kB / 444.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.032e-05/0.1575, allocations: 100.1 kB / 444.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.1576, allocations: 15.72 kB / 444.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.775e-05/0.1576, allocations: 25.7 kB / 444.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1578, allocations: 326.8 kB / 444.8 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.158, allocations: 35.91 kB / 444.8 MB, free: 9.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.1581, allocations: 53.62 kB / 444.9 MB, free: 9.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.1583, allocations: 73.69 kB / 445 MB, free: 9.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1583, allocations: 0 / 445 MB, free: 9.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002996/0.1586, allocations: 125.5 kB / 445.1 MB, free: 9.605 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.1587, allocations: 7.938 kB / 445.1 MB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1587, allocations: 4 kB / 445.1 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.1587, allocations: 288 / 445.1 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.1589, allocations: 19.92 kB / 445.1 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1589, allocations: 0 / 445.1 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.492e-05/0.159, allocations: 24 kB / 445.1 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.159, allocations: 4 kB / 445.2 MB, free: 9.547 MB / 382.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.0001357/0.1591, allocations: 117.8 kB / 445.3 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.1592, allocations: 11.84 kB / 445.3 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.937e-05/0.1592, allocations: 20.7 kB / 445.3 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1592, allocations: 0 / 445.3 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.1593, allocations: 0 / 445.3 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.1593, allocations: 4 kB / 445.3 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005744/0.1598, allocations: 394.3 kB / 445.7 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1599, allocations: 8 kB / 445.7 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.068e-05/0.16, allocations: 11.98 kB / 445.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.16, allocations: 0 / 445.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.16, allocations: 0 / 445.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.16, allocations: 0 / 445.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.16, allocations: 0 / 445.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004419/0.1604, allocations: 259.2 kB / 446 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.399e-05/0.1605, allocations: 85.05 kB / 446 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.1605, allocations: 64 / 446 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.1607, allocations: 23.98 kB / 446.1 MB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.1607, allocations: 11.97 kB / 446.1 MB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.1607, allocations: 4 kB / 446.1 MB, free: 8.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.82e-05/0.1608, allocations: 116 kB / 446.2 MB, free: 8.402 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1608, allocations: 0 / 446.2 MB, free: 8.402 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.1611, allocations: 15.94 kB / 446.2 MB, free: 8.387 MB / 382.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.0001207/0.1612, allocations: 107.2 kB / 446.3 MB, free: 8.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.1615, allocations: 87.77 kB / 446.4 MB, free: 8.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1615, allocations: 0 / 446.4 MB, free: 8.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.1616, allocations: 43.97 kB / 446.4 MB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.162, allocations: 27.27 kB / 446.5 MB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005982/0.1626, allocations: 244.8 kB / 446.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.163, allocations: 0.7003 MB / 447.4 MB, free: 7.125 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.494e-05/0.1631, allocations: 12.41 kB / 447.4 MB, free: 7.113 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.588e-05/0.1631, allocations: 11.44 kB / 447.4 MB, free: 7.105 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1631, allocations: 0 / 447.4 MB, free: 7.105 MB / 382.1 MB Notification: Performance of Templates: time 0.004355/0.1675, allocations: 1.07 MB / 448.5 MB, free: 6.043 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches