Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001218/0.001218, allocations: 109.5 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.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.001571/0.001571, allocations: 188.7 kB / 23.72 MB, free: 4.684 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.377/1.377, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 47.92 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2383, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005767/0.2441, allocations: 4.406 MB / 427 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.2463, allocations: 1.219 MB / 428.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.2465, allocations: 11.94 kB / 428.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000351/0.2468, allocations: 134.8 kB / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005205/0.2474, allocations: 277.7 kB / 428.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004141/0.2478, allocations: 191.7 kB / 428.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.2488, allocations: 0.9288 MB / 429.8 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002951/0.2491, allocations: 168.4 kB / 429.9 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004679/0.2496, allocations: 378.6 kB / 430.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000503/0.2501, allocations: 406.3 kB / 430.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.2502, allocations: 76 kB / 430.8 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.2503, allocations: 80 kB / 430.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.2505, allocations: 171.4 kB / 431 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004004/0.2509, allocations: 422.1 kB / 431.4 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.2519, allocations: 0.9231 MB / 432.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2519, allocations: 0 / 432.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2519, allocations: 0 / 432.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.2519, allocations: 4 kB / 432.4 MB, free: 4.785 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002071/0.254, allocations: 1.053 MB / 433.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.254, allocations: 12.03 kB / 433.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.2542, allocations: 99.66 kB / 433.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.2543, allocations: 92.36 kB / 433.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007944/0.2551, allocations: 431.2 kB / 434 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.2553, allocations: 148.3 kB / 434.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-05/0.2554, allocations: 48.38 kB / 434.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.2565, allocations: 0.6592 MB / 434.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.2566, allocations: 4 kB / 434.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.778e-05/0.2566, allocations: 24 kB / 434.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.2566, allocations: 12 kB / 434.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.2577, allocations: 451.6 kB / 435.4 MB, free: 1.598 MB / 334.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.003156/0.2608, allocations: 1.896 MB / 437.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.2627, allocations: 0.5848 MB / 437.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005572/0.2632, allocations: 242.1 kB / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.2633, allocations: 8.438 kB / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.2633, allocations: 43 kB / 438.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.903e-06/0.2633, allocations: 0 / 438.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.004853/0.2682, allocations: 1.254 MB / 439.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002989/0.2685, allocations: 0.5643 MB / 440 MB, free: 12.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006593/0.2691, allocations: 0.5343 MB / 440.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.607e-05/0.2692, allocations: 41.64 kB / 440.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.2694, allocations: 289.1 kB / 440.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.2696, allocations: 194.3 kB / 441 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.2698, allocations: 122.3 kB / 441.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.27, allocations: 374.7 kB / 441.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005089/0.2705, allocations: 197.2 kB / 441.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007256/0.2712, allocations: 413.2 kB / 442.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.2723, allocations: 491.5 kB / 442.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2723, allocations: 0 / 442.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002313/0.2746, allocations: 0.8017 MB / 443.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.196e-05/0.2746, allocations: 41.69 kB / 443.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2746, allocations: 0 / 443.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.2757, allocations: 210.4 kB / 443.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007247/0.2764, allocations: 139.8 kB / 443.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007821/0.2842, allocations: 5.29 MB / 449 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007096/0.2849, allocations: 91.56 kB / 449.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/0.285, allocations: 20 kB / 449.2 MB, free: 3.008 MB / 350.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.0002964/0.2853, allocations: 192.9 kB / 449.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.2854, allocations: 75.58 kB / 449.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002268/0.2877, allocations: 0.7679 MB / 450.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.2877, allocations: 11.94 kB / 450.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.2877, allocations: 0 / 450.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00221/0.2899, allocations: 1.029 MB / 451.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.2931, allocations: 1.472 MB / 452.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2931, allocations: 0 / 452.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007453/0.2938, allocations: 127.8 kB / 452.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008827/0.2947, allocations: 173.5 kB / 453 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.097e-05/0.2948, allocations: 16.17 kB / 453 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005405/0.3002, allocations: 3.599 MB / 456.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3002, allocations: 3.938 kB / 456.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.303, allocations: 1.061 MB / 457.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.3033, allocations: 135.3 kB / 457.8 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.979e-05/0.3034, allocations: 12 kB / 457.8 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004999/0.3039, allocations: 51.91 kB / 457.9 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.304, allocations: 40.41 kB / 457.9 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/0.304, allocations: 19.98 kB / 457.9 MB, free: 9.781 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005022/0.3045, allocations: 382.8 kB / 458.3 MB, free: 9.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3045, allocations: 0 / 458.3 MB, free: 9.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007363/0.3053, allocations: 223.8 kB / 458.5 MB, free: 9.191 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.003115/0.3084, allocations: 1.625 MB / 460.1 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.3107, allocations: 1.005 MB / 461.1 MB, free: 6.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3107, allocations: 0 / 461.1 MB, free: 6.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.3118, allocations: 0.5197 MB / 461.7 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008471/0.3126, allocations: 186.6 kB / 461.9 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.3234, allocations: 6.044 MB / 467.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005272/0.3239, allocations: 0.8879 MB / 468.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003455/0.3243, allocations: 85.11 kB / 468.9 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003667/0.3246, allocations: 227.4 kB / 469.1 MB, free: 14.36 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3246, allocations: 0 / 469.1 MB, free: 14.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06349/0.3881, allocations: 20.73 MB / 489.8 MB, free: 9.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.04, allocations: 7.938 kB / 489.8 MB, free: 9.957 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 16.383165643084794]