Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 205.5 kB / 24.51 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 230.5 MB / 258.2 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 67.89 kB / 378.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2251, allocations: 53.4 MB / 431.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005781/0.2309, allocations: 4.379 MB / 436.3 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.2332, allocations: 1.32 MB / 437.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.2334, allocations: 11.94 kB / 437.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003648/0.2338, allocations: 150.7 kB / 437.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006605/0.2345, allocations: 345.4 kB / 438.1 MB, free: 252 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.2349, allocations: 215.6 kB / 438.3 MB, free: 36 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.2359, allocations: 1.027 MB / 439.3 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003142/0.2363, allocations: 206.4 kB / 439.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005487/0.2368, allocations: 426.5 kB / 439.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005303/0.2373, allocations: 446.2 kB / 440.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.2375, allocations: 88 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.2376, allocations: 96 kB / 440.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001728/0.2378, allocations: 195.3 kB / 440.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004029/0.2382, allocations: 402.3 kB / 441.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.2393, allocations: 1.086 MB / 442.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2393, allocations: 3.938 kB / 442.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2393, allocations: 0 / 442.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.2393, allocations: 0 / 442.2 MB, free: 12.07 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.002145/0.2414, allocations: 1.176 MB / 443.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2415, allocations: 12.03 kB / 443.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.241e-05/0.2415, allocations: 21.48 kB / 443.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.2417, allocations: 108 kB / 443.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.2418, allocations: 112.4 kB / 443.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007776/0.2426, allocations: 467.3 kB / 444.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.2428, allocations: 160.7 kB / 444.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.805e-05/0.2429, allocations: 64.08 kB / 444.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.2446, allocations: 1.574 MB / 445.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.2447, allocations: 8 kB / 445.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.526e-05/0.2447, allocations: 24 kB / 445.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.2447, allocations: 12 kB / 445.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.2459, allocations: 0.5242 MB / 446.5 MB, free: 7.438 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.003121/0.249, allocations: 1.804 MB / 448.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.2502, allocations: 0.4927 MB / 448.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006072/0.2508, allocations: 269.4 kB / 449 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.41e-05/0.2508, allocations: 8.656 kB / 449 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007588/0.2516, allocations: 348.3 kB / 449.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.244e-06/0.2516, allocations: 0 / 449.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.008678/0.2603, allocations: 2.723 MB / 452.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004032/0.2607, allocations: 0.8276 MB / 452.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006975/0.2614, allocations: 0.5863 MB / 453.5 MB, free: 48 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.517e-05/0.2614, allocations: 45.75 kB / 453.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.2617, allocations: 345.1 kB / 453.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/0.262, allocations: 293.5 kB / 454.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002807/0.2622, allocations: 162.6 kB / 454.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.2624, allocations: 386.8 kB / 454.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009355/0.2634, allocations: 385.2 kB / 455.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001562/0.2649, allocations: 1.461 MB / 456.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001832/0.2668, allocations: 0.8159 MB / 457.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2668, allocations: 4 kB / 457.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003776/0.2705, allocations: 1.384 MB / 458.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.3e-05/0.2706, allocations: 63.39 kB / 458.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.2706, allocations: 4 kB / 458.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.2723, allocations: 450 kB / 459.3 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.2734, allocations: 183.7 kB / 459.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.2843, allocations: 6.679 MB / 466.1 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009498/0.2852, allocations: 83.84 kB / 466.2 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.54e-05/0.2853, allocations: 24 kB / 466.2 MB, free: 2.523 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.0003732/0.2856, allocations: 233.8 kB / 466.5 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.2858, allocations: 91.44 kB / 466.6 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001975/0.286, allocations: 95.97 kB / 466.6 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.286, allocations: 11.94 kB / 466.7 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.286, allocations: 0 / 466.7 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003146/0.2891, allocations: 1.393 MB / 468 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005571/0.2947, allocations: 2.148 MB / 470.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2947, allocations: 0 / 470.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.2958, allocations: 171.8 kB / 470.4 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001569/0.2974, allocations: 390.1 kB / 470.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.306e-05/0.2975, allocations: 19.94 kB / 470.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008581/0.306, allocations: 5.663 MB / 476.4 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.306, allocations: 0 / 476.4 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004841/0.3109, allocations: 1.699 MB / 478.1 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004743/0.3114, allocations: 163.3 kB / 478.3 MB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.3115, allocations: 20 kB / 478.3 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007619/0.3123, allocations: 63.92 kB / 478.4 MB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.3125, allocations: 88.83 kB / 478.5 MB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.509e-05/0.3126, allocations: 27.98 kB / 478.5 MB, free: 5.691 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005342/0.3131, allocations: 419.1 kB / 478.9 MB, free: 5.285 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3131, allocations: 0 / 478.9 MB, free: 5.285 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000991/0.3141, allocations: 292.1 kB / 479.2 MB, free: 5 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.005225/0.3193, allocations: 2.271 MB / 481.4 MB, free: 2.688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003566/0.3229, allocations: 1.514 MB / 483 MB, free: 1.098 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.3229, allocations: 3.938 kB / 483 MB, free: 1.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.3245, allocations: 0.8142 MB / 483.8 MB, free: 252 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.3255, allocations: 221.7 kB / 484 MB, free: 32 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/0.3409, allocations: 7.77 MB / 491.8 MB, free: 8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.3413, allocations: 355.3 kB / 492.1 MB, free: 7.629 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004577/0.3418, allocations: 102.1 kB / 492.2 MB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004209/0.3422, allocations: 295.3 kB / 492.5 MB, free: 7.238 MB / 398.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3422, allocations: 4 kB / 492.5 MB, free: 7.234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06617/0.4084, allocations: 28.78 MB / 0.5091 GB, free: 10.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.37, allocations: 11.66 kB / 0.5091 GB, free: 10.88 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.78511537902523]