Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001425/0.001425, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 230.4 MB / 254 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2579/0.2579, allocations: 46.92 MB / 357 MB, free: 10.22 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00374/0.00374, allocations: 80.14 kB / 0.491 GB, free: 7.758 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1671, allocations: 66.04 MB / 0.5555 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003848/0.171, allocations: 1.644 MB / 0.5571 GB, free: 3.926 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.1721, allocations: 0.5977 MB / 0.5576 GB, free: 3.324 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.882e-05/0.1722, allocations: 0 / 0.5576 GB, free: 3.324 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.1724, allocations: 15.8 kB / 0.5577 GB, free: 3.309 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.373e-05/0.1724, allocations: 15.86 kB / 0.5577 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004239/0.1729, allocations: 91.8 kB / 0.5578 GB, free: 3.203 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.1731, allocations: 111.7 kB / 0.5579 GB, free: 3.094 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.1732, allocations: 27.97 kB / 0.5579 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.1733, allocations: 51.83 kB / 0.5579 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.728e-05/0.1734, allocations: 39.84 kB / 0.558 GB, free: 2.977 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.1734, allocations: 8 kB / 0.558 GB, free: 2.969 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.765e-05/0.1734, allocations: 8 kB / 0.558 GB, free: 2.961 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.548e-05/0.1735, allocations: 15.92 kB / 0.558 GB, free: 2.945 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.589e-05/0.1735, allocations: 51.72 kB / 0.5581 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.1738, allocations: 87.52 kB / 0.5581 GB, free: 2.809 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1738, allocations: 0 / 0.5581 GB, free: 2.809 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1738, allocations: 0 / 0.5581 GB, free: 2.809 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.1738, allocations: 0 / 0.5581 GB, free: 2.809 MB / 414.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.0007785/0.1745, allocations: 419.1 kB / 0.5585 GB, free: 2.352 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1746, allocations: 12.03 kB / 0.5586 GB, free: 2.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.115e-05/0.1746, allocations: 34.75 kB / 0.5586 GB, free: 2.297 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.1747, allocations: 12.89 kB / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000342/0.175, allocations: 212 kB / 0.5588 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.175, allocations: 8.375 kB / 0.5588 GB, free: 2.031 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.1751, allocations: 8.375 kB / 0.5588 GB, free: 2.023 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.1754, allocations: 107.7 kB / 0.5589 GB, free: 1.914 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1754, allocations: 0 / 0.5589 GB, free: 1.914 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.1754, allocations: 3.984 kB / 0.5589 GB, free: 1.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.1754, allocations: 4 kB / 0.5589 GB, free: 1.906 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.1756, allocations: 47.97 kB / 0.559 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007396/0.1763, allocations: 388.5 kB / 0.5593 GB, free: 1.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00038/0.1767, allocations: 106.4 kB / 0.5594 GB, free: 1.316 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.1768, allocations: 36.92 kB / 0.5595 GB, free: 1.277 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.1768, allocations: 4 kB / 0.5595 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002975/0.1771, allocations: 95.36 kB / 0.5596 GB, free: 1.168 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.1771, allocations: 0 / 0.5596 GB, free: 1.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005127/0.1776, allocations: 149.5 kB / 0.5597 GB, free: 1.016 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.1777, allocations: 63.28 kB / 0.5598 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1779, allocations: 148.8 kB / 0.5599 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.1779, allocations: 25.7 kB / 0.5599 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.71e-05/0.178, allocations: 104.1 kB / 0.56 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.178, allocations: 23.84 kB / 0.5601 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-05/0.178, allocations: 21.72 kB / 0.5601 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1782, allocations: 326.8 kB / 0.5604 GB, free: 280 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.1783, allocations: 35.97 kB / 0.5604 GB, free: 244 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.1785, allocations: 49.69 kB / 0.5605 GB, free: 188 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.1787, allocations: 77.62 kB / 0.5606 GB, free: 104 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1787, allocations: 0 / 0.5606 GB, free: 104 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003476/0.1791, allocations: 125.7 kB / 0.5607 GB, free: 15.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1791, allocations: 13.84 kB / 0.5607 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1791, allocations: 0 / 0.5607 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1791, allocations: 0 / 0.5607 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1792, allocations: 15.98 kB / 0.5607 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.1792, allocations: 4 kB / 0.5607 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.912e-05/0.1793, allocations: 16.06 kB / 0.5607 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.1793, allocations: 8 kB / 0.5607 GB, free: 15.92 MB / 430.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.0001073/0.1794, allocations: 121.8 kB / 0.5608 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.1795, allocations: 15.84 kB / 0.5609 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.062e-05/0.1795, allocations: 12.72 kB / 0.5609 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1795, allocations: 3.984 kB / 0.5609 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1795, allocations: 0 / 0.5609 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1795, allocations: 0 / 0.5609 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005798/0.1801, allocations: 390.5 kB / 0.5612 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1801, allocations: 0 / 0.5612 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.917e-05/0.1802, allocations: 23.91 kB / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.1802, allocations: 4 kB / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.1802, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1802, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1802, allocations: 0 / 0.5613 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004987/0.1807, allocations: 251.3 kB / 0.5615 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.23e-05/0.1808, allocations: 89 kB / 0.5616 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.1808, allocations: 4.031 kB / 0.5616 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.1809, allocations: 16.05 kB / 0.5616 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.835e-05/0.181, allocations: 19.97 kB / 0.5616 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.181, allocations: 0 / 0.5616 GB, free: 14.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.661e-05/0.1811, allocations: 111.3 kB / 0.5617 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1811, allocations: 0 / 0.5617 GB, free: 14.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.1814, allocations: 15.94 kB / 0.5618 GB, free: 14.76 MB / 430.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.0009191/0.1823, allocations: 0.7827 MB / 0.5625 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003661/0.1826, allocations: 79.95 kB / 0.5626 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1826, allocations: 288 / 0.5626 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.1828, allocations: 43.97 kB / 0.5626 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.1831, allocations: 27.86 kB / 0.5627 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.1859, allocations: 1.699 MB / 0.5643 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.1862, allocations: 0.7002 MB / 0.565 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.419e-05/0.1862, allocations: 4.562 kB / 0.565 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.978e-05/0.1863, allocations: 35.42 kB / 0.565 GB, free: 11.25 MB / 430.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1863, allocations: 0 / 0.565 GB, free: 11.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02602/0.2123, allocations: 2.612 MB / 0.5676 GB, free: 8.699 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.045, allocations: 7.75 kB / 0.5676 GB, free: 8.695 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000995025 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 11.11400949896779]