Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.001323/0.001323, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001463/0.001463, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 47.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2471, allocations: 53.36 MB / 431.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00667/0.2537, allocations: 4.898 MB / 436 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.2565, allocations: 1.391 MB / 437.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004951/0.257, allocations: 11.94 kB / 437.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005153/0.2575, allocations: 158.7 kB / 437.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.2585, allocations: 349.4 kB / 437.9 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005925/0.2591, allocations: 211.7 kB / 438.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.2606, allocations: 1.027 MB / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003802/0.261, allocations: 206.4 kB / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000746/0.2617, allocations: 422.5 kB / 439.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007331/0.2624, allocations: 450.1 kB / 440.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001959/0.2626, allocations: 88 kB / 440.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.2629, allocations: 92 kB / 440.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.2631, allocations: 199.3 kB / 440.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006151/0.2637, allocations: 473.9 kB / 441 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.265, allocations: 1.085 MB / 442.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.265, allocations: 0 / 442.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.265, allocations: 0 / 442.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.861e-05/0.265, allocations: 0 / 442.1 MB, free: 11.94 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002736/0.2677, allocations: 1.168 MB / 443.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.2678, allocations: 12.03 kB / 443.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000206/0.268, allocations: 108 kB / 443.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002228/0.2682, allocations: 112.3 kB / 443.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009721/0.2692, allocations: 467.3 kB / 444 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.2694, allocations: 152.7 kB / 444.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.019e-05/0.2695, allocations: 52.38 kB / 444.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.2709, allocations: 0.8134 MB / 445 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.271, allocations: 4 kB / 445 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.243e-05/0.271, allocations: 24 kB / 445 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.271, allocations: 12 kB / 445 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2723, allocations: 0.5048 MB / 445.5 MB, free: 8.32 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003895/0.2762, allocations: 2.095 MB / 447.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.2776, allocations: 0.5022 MB / 448.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006689/0.2782, allocations: 230.2 kB / 448.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.638e-05/0.2783, allocations: 12.5 kB / 448.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000808/0.2791, allocations: 326 kB / 448.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 4.979e-06/0.2791, allocations: 4 kB / 448.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005132/0.2842, allocations: 1.322 MB / 450 MB, free: 3.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005287/0.2848, allocations: 0.831 MB / 450.9 MB, free: 2.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.2858, allocations: 0.5824 MB / 451.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.2859, allocations: 41.7 kB / 451.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003551/0.2862, allocations: 345.2 kB / 451.8 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.2865, allocations: 198.2 kB / 452 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.2867, allocations: 130.3 kB / 452.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.2869, allocations: 386.8 kB / 452.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005943/0.2875, allocations: 205.2 kB / 452.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009083/0.2884, allocations: 0.5217 MB / 453.2 MB, free: 112 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.2897, allocations: 0.5679 MB / 453.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.2897, allocations: 0 / 453.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002416/0.2921, allocations: 0.8924 MB / 454.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.532e-05/0.2922, allocations: 63.39 kB / 454.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.2922, allocations: 4 kB / 454.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008146/0.293, allocations: 217.5 kB / 455 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006366/0.2937, allocations: 119.8 kB / 455.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007132/0.3008, allocations: 4.39 MB / 459.5 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008364/0.3016, allocations: 83.58 kB / 459.6 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.593e-05/0.3017, allocations: 27.98 kB / 459.6 MB, free: 9.438 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004379/0.3022, allocations: 209.7 kB / 459.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.3024, allocations: 87.47 kB / 459.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.3025, allocations: 78.84 kB / 460 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3025, allocations: 8 kB / 460 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3025, allocations: 0 / 460 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002197/0.3047, allocations: 1.045 MB / 461 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.3078, allocations: 1.518 MB / 462.5 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3078, allocations: 3.938 kB / 462.5 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006011/0.3084, allocations: 103.9 kB / 462.6 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000562/0.3089, allocations: 173.5 kB / 462.8 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.309, allocations: 15.98 kB / 462.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005378/0.3143, allocations: 3.722 MB / 466.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3143, allocations: 0 / 466.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.3167, allocations: 1.022 MB / 467.6 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000383/0.3171, allocations: 139.3 kB / 467.7 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.3172, allocations: 16 kB / 467.7 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005881/0.3178, allocations: 39.95 kB / 467.7 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.3179, allocations: 56.41 kB / 467.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.318, allocations: 16.17 kB / 467.8 MB, free: 0.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005651/0.3185, allocations: 419.1 kB / 468.2 MB, free: 352 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3185, allocations: 4.062 kB / 468.2 MB, free: 348 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008157/0.3194, allocations: 255.7 kB / 468.5 MB, free: 92 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002729/0.3221, allocations: 1.601 MB / 470.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.3242, allocations: 0.9864 MB / 471.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3242, allocations: 0 / 471.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000998/0.3252, allocations: 0.5239 MB / 471.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008728/0.3261, allocations: 209.6 kB / 471.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.3367, allocations: 6.127 MB / 477.9 MB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005981/0.3373, allocations: 0.9239 MB / 478.9 MB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.3377, allocations: 81.16 kB / 478.9 MB, free: 5.348 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003604/0.338, allocations: 267.3 kB / 479.2 MB, free: 5.086 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.338, allocations: 0 / 479.2 MB, free: 5.086 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06798/0.406, allocations: 23.41 MB / 0.4908 GB, free: 14.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.33, allocations: 10.23 kB / 0.4908 GB, free: 14.06 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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: 16.733861891087145]