Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.001448/0.001448, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001497/0.001497, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.3/1.3, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] 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.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 43.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2279, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006058/0.234, allocations: 4.89 MB / 428.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.2365, allocations: 1.364 MB / 429.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003178/0.2369, allocations: 11.94 kB / 429.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003884/0.2372, allocations: 154.7 kB / 429.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006832/0.2379, allocations: 353.3 kB / 430.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004537/0.2384, allocations: 215.7 kB / 430.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.2395, allocations: 1.019 MB / 431.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00032/0.2398, allocations: 202.1 kB / 431.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.2403, allocations: 418.5 kB / 432 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005392/0.2408, allocations: 454.1 kB / 432.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.2409, allocations: 88 kB / 432.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.2411, allocations: 92 kB / 432.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.2412, allocations: 199.3 kB / 432.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004467/0.2417, allocations: 473.8 kB / 433.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.2428, allocations: 1.078 MB / 434.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2428, allocations: 0 / 434.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2428, allocations: 0 / 434.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.2428, allocations: 0 / 434.4 MB, free: 3.59 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002146/0.2449, allocations: 1.168 MB / 435.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.245, allocations: 15.97 kB / 435.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.541e-05/0.245, allocations: 25.44 kB / 435.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.2452, allocations: 112 kB / 435.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.2453, allocations: 104.3 kB / 435.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007723/0.2461, allocations: 467.3 kB / 436.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.2463, allocations: 160.7 kB / 436.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.489e-05/0.2464, allocations: 60.12 kB / 436.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.2477, allocations: 0.8244 MB / 437.3 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.2478, allocations: 7.891 kB / 437.3 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.279e-05/0.2478, allocations: 24 kB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.2478, allocations: 16 kB / 437.3 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.2491, allocations: 0.5204 MB / 437.8 MB, free: 15.89 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.003386/0.2525, allocations: 2.145 MB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.2536, allocations: 0.4912 MB / 440.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005973/0.2542, allocations: 262.7 kB / 440.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-05/0.2543, allocations: 17.09 kB / 440.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007566/0.255, allocations: 356.3 kB / 441.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.194e-06/0.255, allocations: 0 / 441.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.008507/0.2635, allocations: 2.707 MB / 443.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004364/0.264, allocations: 0.8315 MB / 444.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007053/0.2647, allocations: 0.5901 MB / 445.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.801e-05/0.2648, allocations: 49.69 kB / 445.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002836/0.2651, allocations: 345.2 kB / 445.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002395/0.2653, allocations: 285.5 kB / 445.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002842/0.2656, allocations: 166.6 kB / 446 MB, free: 7.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.2658, allocations: 386.8 kB / 446.4 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009354/0.2667, allocations: 325.8 kB / 446.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.2679, allocations: 0.6621 MB / 447.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001871/0.2698, allocations: 0.8043 MB / 448.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2698, allocations: 0 / 448.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003822/0.2736, allocations: 1.342 MB / 449.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.319e-05/0.2737, allocations: 59.41 kB / 449.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2737, allocations: 4.031 kB / 449.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.2754, allocations: 450 kB / 450.1 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.2765, allocations: 187.7 kB / 450.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/0.2876, allocations: 6.756 MB / 457 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009638/0.2885, allocations: 87.91 kB / 457.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.2886, allocations: 24 kB / 457.1 MB, free: 11.66 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 (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003822/0.289, allocations: 225.7 kB / 457.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.2891, allocations: 91.48 kB / 457.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001821/0.2893, allocations: 95.95 kB / 457.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.2893, allocations: 12 kB / 457.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.2893, allocations: 4 kB / 457.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003302/0.2926, allocations: 1.393 MB / 458.9 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005637/0.2982, allocations: 2.292 MB / 461.2 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.2982, allocations: 0 / 461.2 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.2993, allocations: 175.7 kB / 461.4 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001552/0.3009, allocations: 386.1 kB / 461.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.738e-05/0.3009, allocations: 23.92 kB / 461.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008739/0.3097, allocations: 5.708 MB / 467.5 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3097, allocations: 7.969 kB / 467.5 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00488/0.3146, allocations: 1.695 MB / 469.2 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004591/0.315, allocations: 159.3 kB / 469.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.3151, allocations: 20 kB / 469.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007707/0.3159, allocations: 75.98 kB / 469.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002326/0.3162, allocations: 84.84 kB / 469.5 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.227e-05/0.3162, allocations: 23.98 kB / 469.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005396/0.3167, allocations: 427 kB / 470 MB, free: 14.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3167, allocations: 0 / 470 MB, free: 14.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009687/0.3177, allocations: 288 kB / 470.2 MB, free: 13.93 MB / 382.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 (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * 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.005139/0.3229, allocations: 2.271 MB / 472.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003434/0.3263, allocations: 1.464 MB / 474 MB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.3263, allocations: 4 kB / 474 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.3279, allocations: 0.8027 MB / 474.8 MB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009608/0.3289, allocations: 226.4 kB / 475 MB, free: 9.035 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.344, allocations: 7.558 MB / 482.6 MB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005978/0.3446, allocations: 0.9494 MB / 483.5 MB, free: 292 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004025/0.345, allocations: 102.2 kB / 483.6 MB, free: 188 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004216/0.3455, allocations: 291.4 kB / 483.9 MB, free: 15.89 MB / 398.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3455, allocations: 0 / 483.9 MB, free: 15.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06587/0.4113, allocations: 27.55 MB / 0.4995 GB, free: 4.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.87/14.28, allocations: 6.812 kB / 0.4995 GB, free: 4.746 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.660699696978554]