Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002024/0.002024, allocations: 195.1 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 51.91 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2643, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.003505/0.2678, allocations: 1.829 MB / 424.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.269, allocations: 0.5807 MB / 425 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.2691, allocations: 15.81 kB / 425 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.2692, allocations: 15.8 kB / 425 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.2694, allocations: 27.78 kB / 425 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.2698, allocations: 103.7 kB / 425.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.27, allocations: 139.6 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.2701, allocations: 41.91 kB / 425.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.2702, allocations: 63.7 kB / 425.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.223e-05/0.2703, allocations: 43.72 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.2704, allocations: 8 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.448e-05/0.2704, allocations: 12 kB / 425.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.642e-05/0.2704, allocations: 27.86 kB / 425.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.855e-05/0.2705, allocations: 51.72 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.2707, allocations: 144.9 kB / 425.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2707, allocations: 4 kB / 425.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2707, allocations: 0 / 425.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.433e-06/0.2707, allocations: 0 / 425.7 MB, free: 11.28 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006449/0.2714, allocations: 381.6 kB / 426 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2714, allocations: 8.031 kB / 426.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.017e-05/0.2715, allocations: 46.73 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.161e-05/0.2715, allocations: 20.8 kB / 426.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.2719, allocations: 192 kB / 426.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.2719, allocations: 7.938 kB / 426.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.268e-05/0.2719, allocations: 12 kB / 426.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006493/0.2726, allocations: 321.2 kB / 426.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2726, allocations: 4 kB / 426.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.2726, allocations: 4 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.2726, allocations: 0 / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.2728, allocations: 75.88 kB / 426.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000508/0.2733, allocations: 382.6 kB / 427.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.2738, allocations: 209 kB / 427.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.274, allocations: 108.3 kB / 427.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.274, allocations: 4 kB / 427.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.274, allocations: 42.55 kB / 427.5 MB, free: 9.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.532e-06/0.274, allocations: 0 / 427.5 MB, free: 9.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005806/0.2746, allocations: 217.4 kB / 427.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.2748, allocations: 204.3 kB / 427.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.2749, allocations: 179.2 kB / 428 MB, free: 8.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.275, allocations: 29.7 kB / 428.1 MB, free: 8.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.159e-05/0.275, allocations: 100.5 kB / 428.2 MB, free: 8.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.2751, allocations: 19.83 kB / 428.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/0.2751, allocations: 41.7 kB / 428.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2753, allocations: 326.8 kB / 428.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.624e-05/0.2754, allocations: 20.27 kB / 428.6 MB, free: 8.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.2755, allocations: 171.7 kB / 428.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.2758, allocations: 166.4 kB / 428.9 MB, free: 7.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.2758, allocations: 4 kB / 428.9 MB, free: 7.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003378/0.2761, allocations: 181.2 kB / 429.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.2761, allocations: 8 kB / 429.1 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.2762, allocations: 4 kB / 429.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.2762, allocations: 4 kB / 429.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.2763, allocations: 40.45 kB / 429.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.2763, allocations: 7.938 kB / 429.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.2764, allocations: 23.88 kB / 429.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.2764, allocations: 12 kB / 429.2 MB, free: 7.352 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001408/0.2766, allocations: 137.7 kB / 429.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.2769, allocations: 149.4 kB / 429.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.312e-05/0.2769, allocations: 17.41 kB / 429.5 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2769, allocations: 4 kB / 429.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/0.277, allocations: 7.938 kB / 429.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.277, allocations: 8.016 kB / 429.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.2773, allocations: 180.5 kB / 429.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.2773, allocations: 0 / 429.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.2774, allocations: 35.97 kB / 429.7 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.2774, allocations: 4 kB / 429.7 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.2774, allocations: 0 / 429.7 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.2774, allocations: 7.984 kB / 429.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2774, allocations: 3.938 kB / 429.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.2779, allocations: 368.2 kB / 430.1 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.106e-05/0.278, allocations: 35.84 kB / 430.1 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.278, allocations: 7.984 kB / 430.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.2781, allocations: 8 kB / 430.1 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.783e-05/0.2782, allocations: 15.86 kB / 430.1 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.2782, allocations: 8 kB / 430.2 MB, free: 6.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.2783, allocations: 133.2 kB / 430.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2783, allocations: 0 / 430.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003286/0.2786, allocations: 27.98 kB / 430.3 MB, free: 6.133 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.001023/0.2797, allocations: 0.9561 MB / 431.3 MB, free: 5.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003348/0.28, allocations: 116.8 kB / 431.4 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.28, allocations: 4.062 kB / 431.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.477e-05/0.28, allocations: 12 kB / 431.4 MB, free: 5.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006668/0.2807, allocations: 104.2 kB / 431.5 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.2832, allocations: 2.07 MB / 433.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.2834, allocations: 119.3 kB / 433.7 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.141e-05/0.2835, allocations: 21.48 kB / 433.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.928e-05/0.2835, allocations: 47.42 kB / 433.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2835, allocations: 0 / 433.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.3166, allocations: 4.17 MB / 437.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.56, allocations: 3.859 kB / 437.9 MB, free: 14.42 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.csv failed! Error: Could not read variable hold1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.csv. Warning: Get data of variable hold1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.003229462075979]