Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007907/0.0007907, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008263/0.0008263, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8732/0.8732, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2474/0.2474, allocations: 34.24 MB / 294.9 MB, free: 0.7422 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 442.2 MB, free: 1.719 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876e-05/2.025e-05, allocations: 6.281 kB / 442.2 MB, free: 1.711 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002035/0.002055, allocations: 1.619 MB / 443.8 MB, free: 80 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.157/0.1591, allocations: 0.5583 MB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.1592, allocations: 3.938 kB / 444.3 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.1593, allocations: 14.08 kB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.583e-05/0.1594, allocations: 14.53 kB / 444.4 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.1597, allocations: 91.59 kB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.1598, allocations: 115 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1599, allocations: 25.3 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.414e-05/0.16, allocations: 65.34 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.229e-05/0.16, allocations: 29.09 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.16, allocations: 11.34 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.124e-05/0.16, allocations: 8.25 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.089e-05/0.1601, allocations: 19.34 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.1601, allocations: 31 kB / 444.8 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.1602, allocations: 83.84 kB / 444.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.1602, allocations: 0 / 444.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1602, allocations: 0.5625 kB / 444.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.1602, allocations: 2.719 kB / 444.8 MB, free: 43.15 MB / 410.7 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.0004495/0.1607, allocations: 353.9 kB / 445.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1607, allocations: 10.97 kB / 445.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.66e-05/0.1608, allocations: 39.22 kB / 445.2 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.1608, allocations: 10.02 kB / 445.3 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.161, allocations: 151.3 kB / 445.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.161, allocations: 6.312 kB / 445.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.161, allocations: 9.438 kB / 445.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.1612, allocations: 104.8 kB / 445.5 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1612, allocations: 0.6875 kB / 445.5 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1612, allocations: 14.08 kB / 445.5 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1612, allocations: 2.812 kB / 445.5 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.091e-05/0.1613, allocations: 51.22 kB / 445.6 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004065/0.1617, allocations: 336.6 kB / 445.9 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.1619, allocations: 102.1 kB / 446 MB, free: 42.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.309e-05/0.1619, allocations: 41.89 kB / 446.1 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.1619, allocations: 2.344 kB / 446.1 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/0.1621, allocations: 94.08 kB / 446.1 MB, free: 42.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.1621, allocations: 4 kB / 446.2 MB, free: 42.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002506/0.1623, allocations: 141.5 kB / 446.3 MB, free: 42.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.386e-05/0.1623, allocations: 54.53 kB / 446.3 MB, free: 42.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.612e-05/0.1624, allocations: 152 kB / 446.5 MB, free: 42.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.1624, allocations: 33.52 kB / 446.5 MB, free: 42.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.166e-05/0.1625, allocations: 103.5 kB / 446.6 MB, free: 41.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.1625, allocations: 14.19 kB / 446.6 MB, free: 41.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.1625, allocations: 28.23 kB / 446.7 MB, free: 41.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.001e-05/0.1625, allocations: 322.9 kB / 447 MB, free: 41.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.904e-05/0.1626, allocations: 36.02 kB / 447 MB, free: 41.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.367e-05/0.1626, allocations: 50.28 kB / 447.1 MB, free: 41.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.972e-05/0.1627, allocations: 78.03 kB / 447.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1627, allocations: 0 / 447.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001341/0.1629, allocations: 126 kB / 447.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.1629, allocations: 5.719 kB / 447.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.1629, allocations: 0 / 447.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1629, allocations: 3.938 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.918e-05/0.163, allocations: 18.84 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.163, allocations: 3.031 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.353e-05/0.163, allocations: 23.27 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.163, allocations: 6.906 kB / 447.3 MB, free: 41.53 MB / 410.7 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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 4.558e-05/0.1631, allocations: 120.1 kB / 447.4 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.1631, allocations: 10.84 kB / 447.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.538e-05/0.1631, allocations: 16.22 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1631, allocations: 6 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1631, allocations: 3 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1631, allocations: 3.188 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.1634, allocations: 346.9 kB / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1634, allocations: 2.875 kB / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.356e-05/0.1634, allocations: 15.78 kB / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.1634, allocations: 0 / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-06/0.1634, allocations: 3.234 kB / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1634, allocations: 0 / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1634, allocations: 2.906 kB / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002081/0.1636, allocations: 247.3 kB / 448.1 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.022e-05/0.1636, allocations: 14.72 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.1637, allocations: 7.547 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.283e-05/0.1637, allocations: 18.7 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.1638, allocations: 15.67 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.1638, allocations: 6.969 kB / 448.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.316e-05/0.1638, allocations: 112.6 kB / 448.3 MB, free: 40.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1638, allocations: 0 / 448.3 MB, free: 40.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001464/0.1639, allocations: 15.09 kB / 448.3 MB, free: 40.9 MB / 410.7 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,change.u,booleanPulse.pulseStart) * 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.0002967/0.1642, allocations: 0.7785 MB / 449.1 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.1644, allocations: 83.62 kB / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1644, allocations: 0 / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.519e-05/0.1645, allocations: 44.41 kB / 449.2 MB, free: 40.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.1647, allocations: 27.19 kB / 449.2 MB, free: 40.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.1658, allocations: 1.697 MB / 450.9 MB, free: 38.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.877e-05/0.1658, allocations: 85.83 kB / 451 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.402e-05/0.1659, allocations: 9.438 kB / 451 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.383e-05/0.1659, allocations: 33.58 kB / 451 MB, free: 38.76 MB / 410.7 MB Notification: Performance of SimCode: time 4.8e-07/0.1659, allocations: 0 / 451 MB, free: 38.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01482/0.1807, allocations: 3.384 MB / 454.4 MB, free: 37.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.713/6.894, allocations: 6.953 kB / 454.4 MB, free: 37.78 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.766825671307743]