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.001205/0.001205, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001257/0.001257, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8744/0.8744, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.2312/0.2312, allocations: 34.25 MB / 294.8 MB, free: 0.6758 MB / 266.7 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 3.446e-06/3.446e-06, allocations: 4 kB / 442.1 MB, free: 1.566 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.463e-05, allocations: 9.172 kB / 442.1 MB, free: 1.559 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.1818/0.1818, allocations: 1.615 MB / 443.8 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009448/0.1828, allocations: 0.5575 MB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.99e-05/0.1829, allocations: 3.938 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.183, allocations: 15.53 kB / 444.3 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.75e-05/0.183, allocations: 21.44 kB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.1834, allocations: 83.61 kB / 444.4 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.1835, allocations: 113 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.1836, allocations: 22.3 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.539e-05/0.1837, allocations: 67.03 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.1838, allocations: 29.84 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.1838, allocations: 11.28 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.1838, allocations: 8.781 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.216e-05/0.1838, allocations: 24.03 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.561e-05/0.1839, allocations: 25.8 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.184, allocations: 94.64 kB / 444.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.184, allocations: 0 / 444.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.184, allocations: 0 / 444.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.184, allocations: 0 / 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.0004875/0.1845, allocations: 347.8 kB / 445.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1845, allocations: 12.62 kB / 445.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.6e-05/0.1846, allocations: 37.69 kB / 445.2 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.1846, allocations: 14.64 kB / 445.2 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.1848, allocations: 148.5 kB / 445.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.1849, allocations: 11.06 kB / 445.4 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.1849, allocations: 9.594 kB / 445.4 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001781/0.1851, allocations: 96.08 kB / 445.5 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.1851, allocations: 192 / 445.5 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.1851, allocations: 10.91 kB / 445.5 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.1851, allocations: 1.312 kB / 445.5 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.204e-05/0.1852, allocations: 64.27 kB / 445.6 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004271/0.1856, allocations: 332.1 kB / 445.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.1858, allocations: 102.1 kB / 446 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.505e-05/0.1858, allocations: 39.27 kB / 446 MB, free: 42.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.1858, allocations: 0 / 446 MB, free: 42.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.186, allocations: 97.42 kB / 446.1 MB, free: 42.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.186, allocations: 0 / 446.1 MB, free: 42.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002697/0.1863, allocations: 149.9 kB / 446.3 MB, free: 42.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.1863, allocations: 51.41 kB / 446.3 MB, free: 42.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.104e-05/0.1864, allocations: 150.5 kB / 446.5 MB, free: 42.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.1864, allocations: 29.14 kB / 446.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.636e-05/0.1864, allocations: 107 kB / 446.6 MB, free: 41.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.1864, allocations: 13.94 kB / 446.6 MB, free: 41.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.1865, allocations: 28.12 kB / 446.6 MB, free: 41.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.54e-05/0.1865, allocations: 326.3 kB / 447 MB, free: 41.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.635e-05/0.1866, allocations: 35.06 kB / 447 MB, free: 41.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.323e-05/0.1866, allocations: 45.8 kB / 447 MB, free: 41.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1867, allocations: 84.3 kB / 447.1 MB, free: 41.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1867, allocations: 0 / 447.1 MB, free: 41.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001453/0.1869, allocations: 128.5 kB / 447.2 MB, free: 41.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1869, allocations: 6.031 kB / 447.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1869, allocations: 0 / 447.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.1869, allocations: 7.969 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.815e-05/0.187, allocations: 19.27 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.187, allocations: 1.438 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.48e-05/0.187, allocations: 20.59 kB / 447.3 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.187, allocations: 2.719 kB / 447.3 MB, free: 41.54 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 5.136e-05/0.1871, allocations: 116.2 kB / 447.4 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-06/0.1871, allocations: 16.66 kB / 447.4 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.872e-05/0.1871, allocations: 11 kB / 447.4 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1871, allocations: 7.938 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1871, allocations: 0 / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1871, allocations: 2.938 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.1874, allocations: 351.9 kB / 447.8 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1874, allocations: 0 / 447.8 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.647e-05/0.1875, allocations: 15.88 kB / 447.8 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1875, allocations: 4 kB / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.1875, allocations: 2.938 kB / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1875, allocations: 0 / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1875, allocations: 0 / 447.8 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.1877, allocations: 252 kB / 448.1 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.272e-05/0.1877, allocations: 14.38 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.1878, allocations: 5.266 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.245e-05/0.1878, allocations: 27.64 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.1879, allocations: 9.406 kB / 448.1 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1879, allocations: 6.969 kB / 448.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.893e-05/0.1879, allocations: 110.4 kB / 448.2 MB, free: 40.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1879, allocations: 0 / 448.2 MB, free: 40.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001526/0.1881, allocations: 17.38 kB / 448.3 MB, free: 40.89 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.0003271/0.1884, allocations: 0.7739 MB / 449 MB, free: 40.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001719/0.1886, allocations: 83.36 kB / 449.1 MB, free: 40.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1886, allocations: 288 / 449.1 MB, free: 40.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.815e-05/0.1886, allocations: 45.8 kB / 449.2 MB, free: 40.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.1889, allocations: 27.25 kB / 449.2 MB, free: 40.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.1901, allocations: 1.696 MB / 450.9 MB, free: 38.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.296e-05/0.1902, allocations: 90.52 kB / 451 MB, free: 38.74 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.087e-05/0.1902, allocations: 13.55 kB / 451 MB, free: 38.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.1902, allocations: 33.16 kB / 451 MB, free: 38.71 MB / 410.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1902, allocations: 0 / 451 MB, free: 38.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.2075, allocations: 3.375 MB / 454.4 MB, free: 37.72 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.276/7.484, allocations: 6.875 kB / 454.4 MB, free: 37.72 MB / 410.7 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/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_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,integrator.y Variables in the result:time,integrator.y [Calling sys.exit(0), Time elapsed: 9.503001607954502]