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.000774/0.000774, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008325/0.0008325, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8807/0.8807, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 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="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 2.174e-06/2.174e-06, allocations: 4 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.957e-05/2.174e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.003572/0.003593, allocations: 3.972 MB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.005314, allocations: 1.199 MB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002443/0.005558, allocations: 11.88 kB / 329.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002944/0.005852, allocations: 138.8 kB / 329.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004186/0.006271, allocations: 277.6 kB / 330.1 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.006615, allocations: 207.6 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006936/0.007308, allocations: 0.9725 MB / 331.3 MB, free: 9.148 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.007526, allocations: 165 kB / 331.5 MB, free: 8.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004876/0.008013, allocations: 0.5457 MB / 332 MB, free: 8.434 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.008269, allocations: 295.2 kB / 332.3 MB, free: 8.145 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.864e-05/0.008337, allocations: 76 kB / 332.4 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.577e-05/0.008433, allocations: 80 kB / 332.5 MB, free: 7.992 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.537e-05/0.008528, allocations: 175.4 kB / 332.6 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.008717, allocations: 303.3 kB / 332.9 MB, free: 7.523 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006647/0.009382, allocations: 0.9541 MB / 333.9 MB, free: 6.566 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.009384, allocations: 0 / 333.9 MB, free: 6.566 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.009385, allocations: 0 / 333.9 MB, free: 6.566 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.009395, allocations: 0 / 333.9 MB, free: 6.566 MB / 298.7 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.001228/0.01062, allocations: 1.064 MB / 335 MB, free: 5.461 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.01066, allocations: 8.031 kB / 335 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.01077, allocations: 91.7 kB / 335 MB, free: 5.352 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.01095, allocations: 96.42 kB / 335.1 MB, free: 5.258 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.01146, allocations: 438.4 kB / 335.6 MB, free: 4.801 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.01158, allocations: 148.4 kB / 335.7 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.01163, allocations: 52.36 kB / 335.8 MB, free: 4.582 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008538/0.01248, allocations: 1.162 MB / 336.9 MB, free: 3.227 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.0125, allocations: 8 kB / 336.9 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.01254, allocations: 20 kB / 337 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.01255, allocations: 12 kB / 337 MB, free: 3.188 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000625/0.01317, allocations: 447.6 kB / 337.4 MB, free: 2.75 MB / 298.7 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.001834/0.015, allocations: 1.557 MB / 339 MB, free: 1.121 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.01603, allocations: 0.5697 MB / 339.5 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.01634, allocations: 242.8 kB / 339.8 MB, free: 308 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.01637, allocations: 16.47 kB / 339.8 MB, free: 292 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.01639, allocations: 54.95 kB / 339.8 MB, free: 228 kB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.763e-06/0.0164, allocations: 0 / 339.8 MB, free: 228 kB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.002539/0.01894, allocations: 1.24 MB / 341.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001575/0.01909, allocations: 0.5644 MB / 341.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004038/0.0195, allocations: 0.5382 MB / 342.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.01953, allocations: 37.7 kB / 342.2 MB, free: 13.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.01968, allocations: 293.1 kB / 342.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.887e-05/0.01978, allocations: 194.3 kB / 342.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.0199, allocations: 118.3 kB / 342.8 MB, free: 13.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.02, allocations: 366.8 kB / 343.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/0.02031, allocations: 222.9 kB / 343.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005524/0.02086, allocations: 0.9635 MB / 344.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000811/0.02167, allocations: 487.8 kB / 344.8 MB, free: 10.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.02167, allocations: 0 / 344.8 MB, free: 10.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001579/0.02325, allocations: 0.8346 MB / 345.7 MB, free: 9.938 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/0.02329, allocations: 33.64 kB / 345.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.0233, allocations: 0 / 345.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000586/0.02389, allocations: 226.4 kB / 345.9 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003775/0.02426, allocations: 123.8 kB / 346 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004844/0.02911, allocations: 5.261 MB / 351.3 MB, free: 3.945 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004734/0.02958, allocations: 79.64 kB / 351.4 MB, free: 3.867 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.02961, allocations: 16.09 kB / 351.4 MB, free: 3.852 MB / 314.7 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.000226/0.02984, allocations: 197.7 kB / 351.6 MB, free: 3.648 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.179e-05/0.02992, allocations: 75.52 kB / 351.7 MB, free: 3.574 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.03116, allocations: 0.7679 MB / 352.4 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.03117, allocations: 8 kB / 352.4 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.03117, allocations: 0 / 352.4 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001146/0.03231, allocations: 1.037 MB / 353.5 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.03413, allocations: 1.355 MB / 354.8 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.03413, allocations: 0 / 354.8 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003769/0.03451, allocations: 131.7 kB / 355 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004626/0.03497, allocations: 177.6 kB / 355.1 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.03501, allocations: 16 kB / 355.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/0.03821, allocations: 3.566 MB / 358.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.03821, allocations: 0 / 358.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.03981, allocations: 1.069 MB / 359.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.04004, allocations: 127.3 kB / 359.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.115e-05/0.04009, allocations: 16 kB / 359.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.04034, allocations: 35.95 kB / 360 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.04044, allocations: 48.41 kB / 360 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.04046, allocations: 12 kB / 360 MB, free: 10.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003243/0.04079, allocations: 390.8 kB / 360.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04079, allocations: 7.938 kB / 360.4 MB, free: 10.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005283/0.04131, allocations: 223.8 kB / 360.6 MB, free: 10.16 MB / 330.7 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.001707/0.04302, allocations: 1.609 MB / 362.2 MB, free: 8.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.04441, allocations: 1.038 MB / 363.3 MB, free: 7.422 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.04441, allocations: 0 / 363.3 MB, free: 7.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005647/0.04498, allocations: 0.5196 MB / 363.8 MB, free: 6.879 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00055/0.04553, allocations: 184.6 kB / 364 MB, free: 6.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007037/0.05256, allocations: 6.102 MB / 370.1 MB, free: 444 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.05276, allocations: 298 kB / 370.4 MB, free: 120 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.053, allocations: 77.12 kB / 370.4 MB, free: 44 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.05323, allocations: 232.5 kB / 370.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of SimCode: time 7.52e-07/0.05323, allocations: 4 kB / 370.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.08961, allocations: 22.16 MB / 392.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/7.92, allocations: 12.03 kB / 392.8 MB, free: 10 MB / 362.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins/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: 9.58106582146138]