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.0007819/0.0007819, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0007827/0.0007827, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9125/0.9125, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2513/0.2513, allocations: 34.25 MB / 294.9 MB, free: 0.707 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.933e-06/1.933e-06, allocations: 0 / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.576e-05/2.769e-05, allocations: 2.281 kB / 442.2 MB, free: 1.668 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002464/0.002492, allocations: 1.622 MB / 443.8 MB, free: 32 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.177/0.1795, allocations: 0.5552 MB / 444.3 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.1796, allocations: 7 kB / 444.3 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.1797, allocations: 13.78 kB / 444.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.151e-05/0.1797, allocations: 12.97 kB / 444.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.18, allocations: 95.11 kB / 444.5 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.1801, allocations: 117.6 kB / 444.6 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1802, allocations: 24.75 kB / 444.6 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.516e-05/0.1803, allocations: 62.16 kB / 444.7 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.536e-05/0.1804, allocations: 31.2 kB / 444.7 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.1804, allocations: 8.812 kB / 444.7 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.1804, allocations: 8.781 kB / 444.7 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.442e-05/0.1804, allocations: 19.91 kB / 444.7 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.345e-05/0.1805, allocations: 28.12 kB / 444.8 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.1806, allocations: 89.31 kB / 444.8 MB, free: 43.22 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1806, allocations: 0.7188 kB / 444.8 MB, free: 43.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1806, allocations: 0 / 444.8 MB, free: 43.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.339e-06/0.1806, allocations: 1.781 kB / 444.8 MB, free: 43.22 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.0004356/0.181, allocations: 344.5 kB / 445.2 MB, free: 42.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1811, allocations: 9.188 kB / 445.2 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.562e-05/0.1811, allocations: 46.91 kB / 445.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.793e-05/0.1811, allocations: 10.67 kB / 445.2 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.1813, allocations: 148.4 kB / 445.4 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1813, allocations: 14.22 kB / 445.4 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.1814, allocations: 5.688 kB / 445.4 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.1815, allocations: 110.9 kB / 445.5 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1816, allocations: 192 / 445.5 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.1816, allocations: 5.625 kB / 445.5 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1816, allocations: 2.625 kB / 445.5 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.397e-05/0.1817, allocations: 57.25 kB / 445.6 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.1821, allocations: 340.9 kB / 445.9 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001798/0.1823, allocations: 97.72 kB / 446 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.457e-05/0.1823, allocations: 36.34 kB / 446 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.1823, allocations: 0 / 446 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001567/0.1825, allocations: 101.2 kB / 446.1 MB, free: 42.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.1825, allocations: 0 / 446.1 MB, free: 42.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002616/0.1827, allocations: 145.5 kB / 446.3 MB, free: 42.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.1828, allocations: 51.41 kB / 446.3 MB, free: 42.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.96e-05/0.1828, allocations: 155.7 kB / 446.5 MB, free: 42.17 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.1829, allocations: 25.7 kB / 446.5 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.105e-05/0.1829, allocations: 104 kB / 446.6 MB, free: 42.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.1829, allocations: 17.19 kB / 446.6 MB, free: 42.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.1829, allocations: 26.08 kB / 446.7 MB, free: 42.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.017e-05/0.183, allocations: 322.3 kB / 447 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.324e-05/0.183, allocations: 41.02 kB / 447 MB, free: 41.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.291e-05/0.1831, allocations: 45.47 kB / 447.1 MB, free: 41.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.1832, allocations: 75.11 kB / 447.1 MB, free: 41.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1832, allocations: 4 kB / 447.1 MB, free: 41.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001481/0.1833, allocations: 122.8 kB / 447.3 MB, free: 41.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.1834, allocations: 7.5 kB / 447.3 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1834, allocations: 0 / 447.3 MB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1834, allocations: 3.938 kB / 447.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.339e-05/0.1834, allocations: 23.25 kB / 447.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1834, allocations: 6.109 kB / 447.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.523e-05/0.1835, allocations: 18.06 kB / 447.3 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.1835, allocations: 2.906 kB / 447.3 MB, free: 41.61 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.867e-05/0.1835, allocations: 121.7 kB / 447.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.859e-06/0.1835, allocations: 12.66 kB / 447.4 MB, free: 41.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.1836, allocations: 15.83 kB / 447.5 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1836, allocations: 9.656 kB / 447.5 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1836, allocations: 4 kB / 447.5 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.1836, allocations: 0 / 447.5 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.1839, allocations: 346.5 kB / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1839, allocations: 0 / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.218e-05/0.1839, allocations: 15.52 kB / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1839, allocations: 2.719 kB / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.1839, allocations: 7 kB / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1839, allocations: 0 / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1839, allocations: 0 / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002222/0.1841, allocations: 247.2 kB / 448.1 MB, free: 41.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.244e-05/0.1842, allocations: 20.52 kB / 448.1 MB, free: 41.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.1842, allocations: 5.375 kB / 448.1 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.964e-05/0.1842, allocations: 16.2 kB / 448.1 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.1843, allocations: 16.34 kB / 448.1 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.1843, allocations: 2.906 kB / 448.1 MB, free: 41.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.668e-05/0.1843, allocations: 112.7 kB / 448.3 MB, free: 40.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1843, allocations: 0 / 448.3 MB, free: 40.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001508/0.1845, allocations: 17.81 kB / 448.3 MB, free: 40.98 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.0003091/0.1848, allocations: 0.7801 MB / 449 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000164/0.185, allocations: 78.83 kB / 449.1 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.185, allocations: 2.812 kB / 449.1 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.757e-05/0.185, allocations: 42.34 kB / 449.2 MB, free: 40.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.1853, allocations: 24.14 kB / 449.2 MB, free: 40.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.1865, allocations: 1.7 MB / 450.9 MB, free: 38.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.35e-05/0.1866, allocations: 90.5 kB / 451 MB, free: 38.83 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.078e-05/0.1866, allocations: 13.84 kB / 451 MB, free: 38.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.878e-05/0.1867, allocations: 33.17 kB / 451 MB, free: 38.81 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1867, allocations: 0 / 451 MB, free: 38.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.2025, allocations: 3.379 MB / 454.4 MB, free: 37.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.803/7.006, allocations: 0 / 454.4 MB, free: 37.84 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_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.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_4.1.0_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.098261321894825]