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.001408/0.001408, allocations: 108.6 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.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.00145/0.00145, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.274/1.274, allocations: 225.6 MB / 253.3 MB, free: 13.06 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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 47.86 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2097, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005649/0.2153, allocations: 4.417 MB / 427.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.2175, allocations: 1.212 MB / 429 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.2178, allocations: 11.94 kB / 429.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003408/0.2181, allocations: 130.8 kB / 429.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004864/0.2186, allocations: 277.8 kB / 429.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.219, allocations: 199.7 kB / 429.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009578/0.2199, allocations: 0.9258 MB / 430.6 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000269/0.2202, allocations: 169 kB / 430.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004309/0.2206, allocations: 374.7 kB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004898/0.2211, allocations: 406.3 kB / 431.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.2212, allocations: 76 kB / 431.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.2213, allocations: 76 kB / 431.7 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.2215, allocations: 175.4 kB / 431.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.2219, allocations: 418.1 kB / 432.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009341/0.2228, allocations: 0.9296 MB / 433.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2228, allocations: 0 / 433.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2228, allocations: 0 / 433.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.2228, allocations: 0 / 433.2 MB, free: 4.836 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.001936/0.2248, allocations: 1.057 MB / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2248, allocations: 12.03 kB / 434.2 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.861e-05/0.2248, allocations: 21.11 kB / 434.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001324/0.225, allocations: 99.66 kB / 434.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.2251, allocations: 92.42 kB / 434.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006985/0.2258, allocations: 427.2 kB / 434.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.226, allocations: 148.4 kB / 435 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.241e-05/0.2261, allocations: 60.06 kB / 435.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.2272, allocations: 0.6592 MB / 435.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.2272, allocations: 12 kB / 435.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.332e-05/0.2273, allocations: 20 kB / 435.7 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2273, allocations: 12 kB / 435.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.2284, allocations: 463.6 kB / 436.2 MB, free: 1.602 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.003116/0.2315, allocations: 1.923 MB / 438.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.2333, allocations: 0.5865 MB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005766/0.2339, allocations: 254.6 kB / 439 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.414e-05/0.2339, allocations: 12.48 kB / 439 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.2339, allocations: 50.94 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=60): time 1.974e-06/0.2339, allocations: 0 / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=95): time 0.01717/0.2511, allocations: 4.693 MB / 443.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003175/0.2543, allocations: 2.912 MB / 446.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006893/0.255, allocations: 0.5344 MB / 447.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.2551, allocations: 45.7 kB / 447.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.2553, allocations: 289.8 kB / 447.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003074/0.2556, allocations: 341 kB / 447.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.2559, allocations: 162.6 kB / 448 MB, free: 5.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.2561, allocations: 386.8 kB / 448.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.2572, allocations: 437.8 kB / 448.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.2585, allocations: 0.665 MB / 449.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/0.2606, allocations: 0.9664 MB / 450.4 MB, free: 2.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2606, allocations: 0 / 450.4 MB, free: 2.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.005145/0.2658, allocations: 1.682 MB / 452.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.2658, allocations: 33.7 kB / 452.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2658, allocations: 0 / 452.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002913/0.2688, allocations: 0.6528 MB / 452.8 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.2698, allocations: 195.7 kB / 453 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01517/0.285, allocations: 10.9 MB / 463.9 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.2861, allocations: 79.97 kB / 464 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.352e-05/0.2862, allocations: 35.97 kB / 464 MB, free: 4.469 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 (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.0003828/0.2866, allocations: 227.3 kB / 464.2 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.2867, allocations: 91.42 kB / 464.3 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005141/0.2919, allocations: 1.669 MB / 466 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.2919, allocations: 15.98 kB / 466 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2919, allocations: 3.984 kB / 466 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005015/0.2969, allocations: 1.894 MB / 467.9 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007169/0.3041, allocations: 2.956 MB / 470.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-06/0.3041, allocations: 4 kB / 470.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009401/0.305, allocations: 171.7 kB / 471 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003027/0.308, allocations: 0.6988 MB / 471.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.187e-05/0.3081, allocations: 19.98 kB / 471.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01425/0.3223, allocations: 9.812 MB / 481.6 MB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002263/0.3246, allocations: 2.152 MB / 483.7 MB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006515/0.3311, allocations: 2.35 MB / 486.1 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004159/0.3315, allocations: 179.3 kB / 486.2 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.3317, allocations: 20 kB / 486.3 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/0.3325, allocations: 63.92 kB / 486.3 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00026/0.3328, allocations: 108.7 kB / 486.4 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.749e-05/0.3328, allocations: 27.97 kB / 486.4 MB, free: 13.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004576/0.3333, allocations: 386.8 kB / 486.8 MB, free: 12.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3333, allocations: 0 / 486.8 MB, free: 12.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001128/0.3344, allocations: 348 kB / 487.2 MB, free: 12.34 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.006956/0.3414, allocations: 2.92 MB / 490.1 MB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004201/0.3456, allocations: 1.956 MB / 492 MB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.3456, allocations: 4 kB / 492 MB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002622/0.3482, allocations: 1.268 MB / 493.3 MB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009636/0.3492, allocations: 210.2 kB / 493.5 MB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01806/0.3672, allocations: 8.877 MB / 0.4906 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/0.3678, allocations: 0.9564 MB / 0.4916 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004159/0.3682, allocations: 98.69 kB / 0.4917 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004152/0.3687, allocations: 291.3 kB / 0.4919 GB, free: 11.37 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3687, allocations: 0 / 0.4919 GB, free: 11.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07414/0.4428, allocations: 30 MB / 0.5212 GB, free: 13.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.36, allocations: 7.688 kB / 0.5212 GB, free: 13.73 MB / 446.1 MB " [Timeout remaining time 645] (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.884576037991792]