Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0008543/0.0008543, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008609/0.0008609, 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.9122/0.9122, allocations: 177.1 MB / 204.3 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2429/0.2429, allocations: 32.8 MB / 293.5 MB, free: 1.207 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.782e-05/1.952e-05, allocations: 2.281 kB / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002917/0.002936, allocations: 1.623 MB / 441.2 MB, free: 2.617 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000927/0.003863, allocations: 0.5647 MB / 441.8 MB, free: 2.047 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.426e-05/0.003958, allocations: 4 kB / 441.8 MB, free: 2.043 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.004082, allocations: 15.8 kB / 441.8 MB, free: 2.027 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.49e-05/0.004137, allocations: 11.81 kB / 441.8 MB, free: 2.016 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.004483, allocations: 94.75 kB / 441.9 MB, free: 1.926 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.004651, allocations: 111.7 kB / 442 MB, free: 1.816 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.004773, allocations: 19.98 kB / 442 MB, free: 1.797 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.004881, allocations: 75.75 kB / 442.1 MB, free: 1.723 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.573e-05/0.004947, allocations: 27.91 kB / 442.1 MB, free: 1.695 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.004978, allocations: 11.98 kB / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.523e-05/0.004993, allocations: 8 kB / 442.1 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.956e-05/0.005022, allocations: 19.92 kB / 442.1 MB, free: 1.656 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.117e-05/0.005064, allocations: 23.92 kB / 442.2 MB, free: 1.633 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.005221, allocations: 87.73 kB / 442.3 MB, free: 1.547 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.005224, allocations: 0 / 442.3 MB, free: 1.547 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005225, allocations: 0 / 442.3 MB, free: 1.547 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.005229, allocations: 0 / 442.3 MB, free: 1.547 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.0005711/0.0058, allocations: 350.8 kB / 442.6 MB, free: 1.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.005844, allocations: 16.02 kB / 442.6 MB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.638e-05/0.00588, allocations: 34.75 kB / 442.6 MB, free: 1.113 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.005914, allocations: 12.89 kB / 442.7 MB, free: 1.102 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.006163, allocations: 152.6 kB / 442.8 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.006183, allocations: 8.312 kB / 442.8 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.006207, allocations: 8.375 kB / 442.8 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.006459, allocations: 106.2 kB / 442.9 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.006469, allocations: 192 / 442.9 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.006482, allocations: 4.125 kB / 442.9 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.006488, allocations: 4 kB / 442.9 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.006637, allocations: 51.91 kB / 443 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006161/0.007253, allocations: 347.6 kB / 443.3 MB, free: 372 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.007544, allocations: 102.5 kB / 443.4 MB, free: 260 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.886e-05/0.007633, allocations: 32.91 kB / 443.5 MB, free: 224 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.007647, allocations: 4 kB / 443.5 MB, free: 220 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002194/0.007866, allocations: 103.3 kB / 443.6 MB, free: 104 kB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 2.034e-06/0.007868, allocations: 0 / 443.6 MB, free: 104 kB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.165/0.1729, allocations: 138.6 kB / 443.7 MB, free: 46.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.1729, allocations: 54.31 kB / 443.8 MB, free: 46.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.173, allocations: 149.4 kB / 443.9 MB, free: 45.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.1731, allocations: 26.89 kB / 443.9 MB, free: 45.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.447e-05/0.1731, allocations: 103.3 kB / 444 MB, free: 45.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.1731, allocations: 23.98 kB / 444.1 MB, free: 45.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.1732, allocations: 23.94 kB / 444.1 MB, free: 45.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.564e-05/0.1732, allocations: 324.5 kB / 444.4 MB, free: 45.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.754e-05/0.1733, allocations: 31.77 kB / 444.4 MB, free: 45.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.087e-05/0.1733, allocations: 55.81 kB / 444.5 MB, free: 45.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.1735, allocations: 75.02 kB / 444.5 MB, free: 45.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1735, allocations: 4.75 kB / 444.6 MB, free: 45.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001711/0.1736, allocations: 119 kB / 444.7 MB, free: 45.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1736, allocations: 7.031 kB / 444.7 MB, free: 45.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1737, allocations: 0.5625 kB / 444.7 MB, free: 45.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1737, allocations: 1.438 kB / 444.7 MB, free: 45.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.529e-05/0.1737, allocations: 17.81 kB / 444.7 MB, free: 45.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1737, allocations: 0 / 444.7 MB, free: 45.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.32e-05/0.1738, allocations: 26.25 kB / 444.7 MB, free: 45.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.1738, allocations: 7.266 kB / 444.7 MB, free: 45.42 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 6.379e-05/0.1739, allocations: 121.3 kB / 444.8 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.1739, allocations: 18.75 kB / 444.9 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.241e-05/0.1739, allocations: 10.09 kB / 444.9 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1739, allocations: 2.906 kB / 444.9 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1739, allocations: 0 / 444.9 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1739, allocations: 7.156 kB / 444.9 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003209/0.1742, allocations: 349.6 kB / 445.2 MB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1743, allocations: 0.9844 kB / 445.2 MB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.1743, allocations: 19.83 kB / 445.2 MB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.1743, allocations: 5.281 kB / 445.3 MB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.1743, allocations: 0 / 445.3 MB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1743, allocations: 3.938 kB / 445.3 MB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1743, allocations: 0 / 445.3 MB, free: 45.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.1745, allocations: 245.8 kB / 445.5 MB, free: 44.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.252e-05/0.1746, allocations: 13.69 kB / 445.5 MB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.1746, allocations: 1.344 kB / 445.5 MB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.593e-05/0.1746, allocations: 21.7 kB / 445.5 MB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.14e-05/0.1747, allocations: 15.33 kB / 445.5 MB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.1747, allocations: 2.906 kB / 445.6 MB, free: 44.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.878e-05/0.1747, allocations: 115.1 kB / 445.7 MB, free: 44.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1747, allocations: 2.125 kB / 445.7 MB, free: 44.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001608/0.1749, allocations: 23.38 kB / 445.7 MB, free: 44.82 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.0003122/0.1752, allocations: 0.7749 MB / 446.5 MB, free: 44.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001598/0.1754, allocations: 78.78 kB / 446.5 MB, free: 44.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1754, allocations: 1.562 kB / 446.5 MB, free: 44.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.023e-05/0.1754, allocations: 41.17 kB / 446.6 MB, free: 44.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.1757, allocations: 22.91 kB / 446.6 MB, free: 44.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.177, allocations: 1.702 MB / 448.3 MB, free: 42.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.344e-05/0.177, allocations: 92.08 kB / 448.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.862e-05/0.177, allocations: 9.875 kB / 448.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.18e-05/0.1771, allocations: 36.38 kB / 448.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1771, allocations: 0 / 448.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.1973, allocations: 3.38 MB / 451.8 MB, free: 41.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/7.119, allocations: 4 kB / 451.8 MB, free: 41.89 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.168938089162111]