Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.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.001426/0.001426, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001459/0.001459, allocations: 186 kB / 23.71 MB, free: 4.434 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.459/1.459, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 44.02 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2466, allocations: 52.18 MB / 422.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.006459/0.253, allocations: 4.214 MB / 426.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002168/0.2552, allocations: 1.611 MB / 428.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.344e-05/0.2553, allocations: 7.938 kB / 428.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002352/0.2555, allocations: 39.69 kB / 428.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003582/0.2559, allocations: 127.2 kB / 428.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006986/0.2566, allocations: 250 kB / 428.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000397/0.257, allocations: 290.9 kB / 429.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.825e-05/0.257, allocations: 13.31 kB / 429.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002708/0.2573, allocations: 135.6 kB / 429.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.2574, allocations: 79.61 kB / 429.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.2575, allocations: 8 kB / 429.3 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.2578, allocations: 91.88 kB / 429.4 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.295e-05/0.2578, allocations: 35.89 kB / 429.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.2579, allocations: 75.7 kB / 429.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.2583, allocations: 209 kB / 429.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2583, allocations: 0 / 429.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2583, allocations: 4 kB / 429.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.2583, allocations: 0 / 429.7 MB, free: 7.34 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001011/0.2593, allocations: 413.9 kB / 430.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2593, allocations: 8.031 kB / 430.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.833e-05/0.2594, allocations: 50.73 kB / 430.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.2596, allocations: 28.83 kB / 430.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.26, allocations: 154.3 kB / 430.4 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.26, allocations: 8.656 kB / 430.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.713e-05/0.26, allocations: 16.33 kB / 430.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005785/0.2606, allocations: 379.6 kB / 430.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2606, allocations: 0 / 430.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.2606, allocations: 8 kB / 430.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.2606, allocations: 7.938 kB / 430.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003802/0.261, allocations: 155.8 kB / 430.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.2625, allocations: 0.8674 MB / 431.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004039/0.2629, allocations: 138.8 kB / 431.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.2631, allocations: 48.83 kB / 432 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005037/0.2636, allocations: 340.1 kB / 432.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.2636, allocations: 30.56 kB / 432.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.104e-06/0.2636, allocations: 0 / 432.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.002765/0.2664, allocations: 0.6998 MB / 433 MB, free: 3.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.2664, allocations: 55.41 kB / 433.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.2666, allocations: 167 kB / 433.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.2667, allocations: 29.7 kB / 433.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2668, allocations: 140.1 kB / 433.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.2669, allocations: 75.36 kB / 433.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.267, allocations: 65.64 kB / 433.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.2672, allocations: 318.8 kB / 433.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.2675, allocations: 91.94 kB / 434 MB, free: 2.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.2679, allocations: 190 kB / 434.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006399/0.2685, allocations: 302.3 kB / 434.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2685, allocations: 0 / 434.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000801/0.2693, allocations: 329 kB / 434.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.2693, allocations: 4 kB / 434.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.2693, allocations: 4.469 kB / 434.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.2694, allocations: 12 kB / 434.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.2698, allocations: 75.89 kB / 434.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.2698, allocations: 7.938 kB / 434.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.27, allocations: 15.98 kB / 434.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/0.2701, allocations: 19.98 kB / 434.9 MB, free: 1.754 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.0001484/0.2702, allocations: 137.7 kB / 435 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.163e-05/0.2703, allocations: 11.91 kB / 435 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007323/0.271, allocations: 249 kB / 435.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.271, allocations: 4 kB / 435.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.271, allocations: 0 / 435.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.271, allocations: 0 / 435.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.2724, allocations: 0.5554 MB / 435.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2724, allocations: 4 kB / 435.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/0.2727, allocations: 47.95 kB / 435.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.2728, allocations: 4 kB / 435.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.2728, allocations: 12.06 kB / 435.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.2728, allocations: 4 kB / 435.9 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2728, allocations: 3.938 kB / 435.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009636/0.2737, allocations: 407.1 kB / 436.3 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.2738, allocations: 27.92 kB / 436.3 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.852e-05/0.2738, allocations: 3.938 kB / 436.3 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.2741, allocations: 15.98 kB / 436.4 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.2741, allocations: 23.91 kB / 436.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.2741, allocations: 4 kB / 436.4 MB, free: 156 kB / 334.1 MB Notification: Performance of sorting global known variables: time 9.373e-05/0.2742, allocations: 111.2 kB / 436.5 MB, free: 44 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2742, allocations: 0 / 436.5 MB, free: 44 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.000474/0.2747, allocations: 63.98 kB / 436.6 MB, free: 15.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.001426/0.2761, allocations: 0.9672 MB / 437.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006897/0.2768, allocations: 208.5 kB / 437.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2768, allocations: 4 kB / 437.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003195/0.2771, allocations: 91.19 kB / 437.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.2775, allocations: 43.89 kB / 437.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/0.2813, allocations: 2.38 MB / 440.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.2814, allocations: 103.3 kB / 440.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002288/0.2817, allocations: 41.94 kB / 440.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.2818, allocations: 51.41 kB / 440.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2818, allocations: 0 / 440.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03598/0.3178, allocations: 5.218 MB / 445.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.62, allocations: 6.094 kB / 445.7 MB, free: 6.801 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.019992 Modelica_4_0_0_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.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: 14.185789038892835]