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.001347/0.001347, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001389/0.001389, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.42/1.42, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 51.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.0947, allocations: 53.33 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005664/0.1004, allocations: 4.405 MB / 430.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1709/0.2713, allocations: 1.236 MB / 431.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002998/0.2716, allocations: 10.66 kB / 432 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003281/0.2719, allocations: 134.8 kB / 432.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004532/0.2724, allocations: 278.6 kB / 432.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.2728, allocations: 193.5 kB / 432.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007869/0.2735, allocations: 0.9284 MB / 433.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.2738, allocations: 166 kB / 433.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003862/0.2742, allocations: 385.5 kB / 434 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003724/0.2745, allocations: 401.8 kB / 434.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.2746, allocations: 77.5 kB / 434.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.2748, allocations: 84.25 kB / 434.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.588e-05/0.2749, allocations: 172.8 kB / 434.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002901/0.2752, allocations: 414.7 kB / 435.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008621/0.276, allocations: 0.927 MB / 436.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.276, allocations: 1.062 kB / 436.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2761, allocations: 0 / 436.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.2761, allocations: 0 / 436.1 MB, free: 6.758 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.001824/0.2779, allocations: 1.139 MB / 437.2 MB, free: 6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2779, allocations: 10.22 kB / 437.2 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.278, allocations: 90.69 kB / 437.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002198/0.2783, allocations: 95.5 kB / 437.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006344/0.2789, allocations: 496 kB / 437.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.279, allocations: 102.4 kB / 438 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.351e-05/0.2791, allocations: 48 kB / 438 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.2802, allocations: 0.6595 MB / 438.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.2802, allocations: 5.094 kB / 438.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.2802, allocations: 22.19 kB / 438.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.2802, allocations: 11.41 kB / 438.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.2813, allocations: 451.8 kB / 439.2 MB, free: 4.867 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.002733/0.284, allocations: 1.964 MB / 441.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.2859, allocations: 0.6533 MB / 441.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005413/0.2864, allocations: 243.5 kB / 442 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.554e-05/0.2865, allocations: 9.781 kB / 442 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.2865, allocations: 44.03 kB / 442.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.354e-06/0.2865, allocations: 0 / 442.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005056/0.2916, allocations: 1.484 MB / 443.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/0.2917, allocations: 0.5633 MB / 444.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.2922, allocations: 0.5408 MB / 444.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/0.2923, allocations: 38.17 kB / 444.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.2924, allocations: 293.3 kB / 445 MB, free: 1.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.2926, allocations: 195.5 kB / 445.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.2927, allocations: 109.4 kB / 445.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.448e-05/0.2928, allocations: 375.8 kB / 445.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005181/0.2933, allocations: 191.2 kB / 445.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006168/0.294, allocations: 418.8 kB / 446.2 MB, free: 404 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009874/0.2949, allocations: 497.2 kB / 446.7 MB, free: 152 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2949, allocations: 0 / 446.7 MB, free: 152 kB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002368/0.2973, allocations: 0.8072 MB / 447.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.2973, allocations: 34.5 kB / 447.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2974, allocations: 1.438 kB / 447.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.2984, allocations: 222 kB / 447.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007435/0.2991, allocations: 127.5 kB / 447.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00832/0.3075, allocations: 5.615 MB / 453.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000783/0.3082, allocations: 73.34 kB / 453.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/0.3083, allocations: 18.16 kB / 453.6 MB, free: 10.77 MB / 366.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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003304/0.3086, allocations: 195 kB / 453.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.3088, allocations: 76.06 kB / 453.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/0.3112, allocations: 0.773 MB / 454.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.3112, allocations: 9.469 kB / 454.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3112, allocations: 0.9375 kB / 454.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002408/0.3136, allocations: 1.038 MB / 455.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.317, allocations: 1.5 MB / 457.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.317, allocations: 0.5625 kB / 457.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000767/0.3178, allocations: 127.9 kB / 457.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000866/0.3187, allocations: 181.3 kB / 457.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.3187, allocations: 14.38 kB / 457.5 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005691/0.3244, allocations: 3.802 MB / 461.3 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3244, allocations: 3.938 kB / 461.3 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002979/0.3274, allocations: 1.069 MB / 462.4 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003495/0.3277, allocations: 206.7 kB / 462.6 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.906e-05/0.3278, allocations: 13.34 kB / 462.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005174/0.3284, allocations: 41.77 kB / 462.7 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.3285, allocations: 43.47 kB / 462.7 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.3285, allocations: 18.89 kB / 462.7 MB, free: 4.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000497/0.329, allocations: 383 kB / 463.1 MB, free: 4.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.329, allocations: 0 / 463.1 MB, free: 4.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007655/0.3298, allocations: 224.7 kB / 463.3 MB, free: 4.234 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003212/0.333, allocations: 1.636 MB / 464.9 MB, free: 3.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002413/0.3354, allocations: 1.008 MB / 466 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3354, allocations: 1.281 kB / 466 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3365, allocations: 0.5106 MB / 466.5 MB, free: 1.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008455/0.3373, allocations: 193.6 kB / 466.7 MB, free: 1.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.3481, allocations: 6.037 MB / 472.7 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.3486, allocations: 0.8924 MB / 473.6 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003182/0.3489, allocations: 79.19 kB / 473.7 MB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003344/0.3492, allocations: 232.2 kB / 473.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3492, allocations: 0 / 473.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.069/0.4182, allocations: 20.32 MB / 494.2 MB, free: 10.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.29, allocations: 11.44 kB / 494.2 MB, free: 10.55 MB / 398.1 MB " [Timeout remaining time 647] (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: 15.673855683999136]