Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001221/0.001221, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.001376/0.001376, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.334/1.334, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 179] 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.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 43.92 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2361, allocations: 53.36 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006232/0.2423, allocations: 4.432 MB / 436.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.2447, allocations: 1.254 MB / 437.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002968/0.245, allocations: 11.88 kB / 437.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003665/0.2453, allocations: 130.8 kB / 437.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005345/0.2459, allocations: 269.8 kB / 438 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004406/0.2463, allocations: 203.7 kB / 438.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009974/0.2473, allocations: 0.9297 MB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002881/0.2476, allocations: 173 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005065/0.2481, allocations: 378.7 kB / 439.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004846/0.2486, allocations: 398.4 kB / 440.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.2487, allocations: 76 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.2488, allocations: 83.98 kB / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.249, allocations: 175.4 kB / 440.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003645/0.2494, allocations: 418.1 kB / 440.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009391/0.2503, allocations: 0.926 MB / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2503, allocations: 4 kB / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2503, allocations: 0 / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.2503, allocations: 3.938 kB / 441.7 MB, free: 13.01 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001933/0.2522, allocations: 1.057 MB / 442.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2523, allocations: 12.03 kB / 442.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.873e-05/0.2523, allocations: 17.19 kB / 442.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.2525, allocations: 99.69 kB / 442.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.2527, allocations: 100.4 kB / 443 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007065/0.2534, allocations: 431.1 kB / 443.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.2536, allocations: 148.4 kB / 443.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.621e-05/0.2537, allocations: 52.12 kB / 443.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.2548, allocations: 0.6709 MB / 444.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2549, allocations: 0 / 444.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.763e-05/0.2549, allocations: 24 kB / 444.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.2549, allocations: 12 kB / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.256, allocations: 463.7 kB / 444.8 MB, free: 9.781 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.003079/0.2591, allocations: 1.923 MB / 446.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.2609, allocations: 0.591 MB / 447.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005681/0.2614, allocations: 252.3 kB / 447.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-05/0.2615, allocations: 16.47 kB / 447.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.2615, allocations: 51 kB / 447.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=60): time 2.484e-06/0.2615, allocations: 0 / 447.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=95): time 0.01768/0.2792, allocations: 4.667 MB / 452.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003272/0.2825, allocations: 2.927 MB / 455.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007258/0.2832, allocations: 0.5421 MB / 455.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.2833, allocations: 41.81 kB / 455.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.2836, allocations: 297.7 kB / 456.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/0.2839, allocations: 340.9 kB / 456.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000336/0.2843, allocations: 166.6 kB / 456.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.2845, allocations: 382.8 kB / 456.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.2856, allocations: 433.8 kB / 457.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.2869, allocations: 0.6689 MB / 458 MB, free: 11.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002248/0.2892, allocations: 0.9664 MB / 459 MB, free: 10.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2892, allocations: 0 / 459 MB, free: 10.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.005478/0.2946, allocations: 1.678 MB / 460.7 MB, free: 9.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.2947, allocations: 36.52 kB / 460.7 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.2947, allocations: 0 / 460.7 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002957/0.2977, allocations: 0.6606 MB / 461.4 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.2987, allocations: 187.7 kB / 461.6 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01558/0.3143, allocations: 10.91 MB / 472.5 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.3154, allocations: 79.97 kB / 472.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.3155, allocations: 35.97 kB / 472.6 MB, free: 12.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (73): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,2,60.0%), (1,1,100.0%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004513/0.316, allocations: 221.7 kB / 472.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.3162, allocations: 87.67 kB / 472.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005395/0.3216, allocations: 1.677 MB / 474.6 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.3216, allocations: 15.98 kB / 474.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.3216, allocations: 4 kB / 474.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005141/0.3268, allocations: 1.894 MB / 476.5 MB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007533/0.3343, allocations: 2.953 MB / 479.4 MB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.3343, allocations: 3.984 kB / 479.4 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000981/0.3353, allocations: 176 kB / 479.6 MB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003153/0.3384, allocations: 0.7107 MB / 480.3 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.54e-05/0.3385, allocations: 19.98 kB / 480.3 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/0.3539, allocations: 9.804 MB / 490.1 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002509/0.3564, allocations: 2.144 MB / 492.3 MB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006886/0.3633, allocations: 2.342 MB / 494.6 MB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005013/0.3638, allocations: 183.7 kB / 494.8 MB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/0.364, allocations: 20 kB / 494.8 MB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009275/0.3649, allocations: 67.92 kB / 494.9 MB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.3652, allocations: 104.7 kB / 495 MB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.567e-05/0.3652, allocations: 36.03 kB / 495 MB, free: 5.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005185/0.3658, allocations: 390.8 kB / 495.4 MB, free: 4.852 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3658, allocations: 0 / 495.4 MB, free: 4.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001287/0.367, allocations: 344 kB / 495.8 MB, free: 4.516 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 ($STATESET1.x,heatCapacitor.T,speed.phi) * 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 (63): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,2,60.0%), (1,1,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,10), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007345/0.3744, allocations: 2.928 MB / 498.7 MB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004448/0.3788, allocations: 1.953 MB / 0.4889 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.3788, allocations: 0 / 0.4889 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002923/0.3818, allocations: 1.276 MB / 0.4901 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.3828, allocations: 202 kB / 0.4903 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01937/0.4021, allocations: 8.867 MB / 0.499 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000689/0.4028, allocations: 0.9603 MB / 0.4999 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004401/0.4033, allocations: 102.7 kB / 0.5 GB, free: 3.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004472/0.4037, allocations: 287.3 kB / 0.5003 GB, free: 3.543 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4037, allocations: 0 / 0.5003 GB, free: 3.543 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.086/0.4897, allocations: 30 MB / 0.5296 GB, free: 5.902 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.24/14.73, allocations: 10.53 kB / 0.5296 GB, free: 5.898 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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: 17.324013697972987]