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.001488/0.001488, allocations: 113 kB / 18.49 MB, free: 4.539 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.001572/0.001572, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.391/1.391, allocations: 230.6 MB / 254.8 MB, free: 15.08 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="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.00142/0.00142, allocations: 55.92 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09585, allocations: 53.32 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005412/0.1013, allocations: 4.404 MB / 431.4 MB, free: 360 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1725/0.2737, allocations: 1.236 MB / 432.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003052/0.2741, allocations: 11.88 kB / 432.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003112/0.2744, allocations: 133 kB / 432.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004193/0.2748, allocations: 279.4 kB / 433.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.2751, allocations: 200.8 kB / 433.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007822/0.2759, allocations: 0.9234 MB / 434.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.2761, allocations: 166.7 kB / 434.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003657/0.2765, allocations: 385.9 kB / 434.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003666/0.2769, allocations: 399.1 kB / 435.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.55e-05/0.277, allocations: 76.5 kB / 435.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.2771, allocations: 82.7 kB / 435.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.2772, allocations: 177.2 kB / 435.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002899/0.2775, allocations: 413.6 kB / 435.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008695/0.2784, allocations: 0.9261 MB / 436.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2784, allocations: 3.953 kB / 436.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2784, allocations: 1.094 kB / 436.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.2784, allocations: 0 / 436.8 MB, free: 6.762 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.001759/0.2802, allocations: 1.13 MB / 437.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2802, allocations: 9.469 kB / 437.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.354e-05/0.2802, allocations: 22.42 kB / 437.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.2804, allocations: 91.44 kB / 438 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.2806, allocations: 105.1 kB / 438.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.2812, allocations: 490.4 kB / 438.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.2813, allocations: 98.47 kB / 438.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.19e-05/0.2814, allocations: 56.5 kB / 438.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.2824, allocations: 0.6619 MB / 439.4 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.2825, allocations: 9.766 kB / 439.4 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.297e-05/0.2825, allocations: 24.34 kB / 439.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2825, allocations: 11.06 kB / 439.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.2836, allocations: 460.4 kB / 439.9 MB, free: 4.84 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.002672/0.2862, allocations: 1.993 MB / 441.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.288, allocations: 0.6565 MB / 442.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005565/0.2885, allocations: 253 kB / 442.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.073e-05/0.2886, allocations: 16.75 kB / 442.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.2886, allocations: 42.12 kB / 442.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=60): time 1.884e-06/0.2886, allocations: 3.938 kB / 442.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=95): time 0.01754/0.3061, allocations: 4.997 MB / 447.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003071/0.3092, allocations: 3.016 MB / 450.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007313/0.3099, allocations: 0.5398 MB / 451.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.3101, allocations: 46.14 kB / 451.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/0.3103, allocations: 284.9 kB / 451.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00032/0.3106, allocations: 342 kB / 452.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003434/0.311, allocations: 166.9 kB / 452.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.3112, allocations: 386.8 kB / 452.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.3123, allocations: 438.6 kB / 453.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.3136, allocations: 0.668 MB / 453.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/0.3158, allocations: 0.9702 MB / 454.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3158, allocations: 0 / 454.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.005208/0.321, allocations: 1.677 MB / 456.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.3211, allocations: 31.52 kB / 456.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3211, allocations: 3.875 kB / 456.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002932/0.324, allocations: 0.6494 MB / 457.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.325, allocations: 198.3 kB / 457.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01569/0.3407, allocations: 11.52 MB / 468.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.3421, allocations: 81.47 kB / 468.9 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.712e-05/0.3421, allocations: 32.66 kB / 468.9 MB, free: 0.5898 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.0004179/0.3426, allocations: 216 kB / 469.1 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.3427, allocations: 91.17 kB / 469.2 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005343/0.3481, allocations: 1.677 MB / 470.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.3481, allocations: 10.2 kB / 470.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3481, allocations: 3.125 kB / 470.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005094/0.3532, allocations: 1.897 MB / 472.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007266/0.3605, allocations: 3.015 MB / 475.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3605, allocations: 0 / 475.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009183/0.3614, allocations: 177.4 kB / 476 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003024/0.3644, allocations: 0.7026 MB / 476.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.977e-05/0.3645, allocations: 20.67 kB / 476.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01481/0.3793, allocations: 10.33 MB / 487 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002455/0.3817, allocations: 2.246 MB / 489.3 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006837/0.3886, allocations: 2.34 MB / 491.6 MB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005211/0.3891, allocations: 264.6 kB / 491.9 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.3892, allocations: 20 kB / 491.9 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008983/0.3901, allocations: 71.91 kB / 491.9 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002979/0.3904, allocations: 96.92 kB / 492 MB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.129e-05/0.3905, allocations: 35.97 kB / 492.1 MB, free: 12.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005188/0.391, allocations: 386.8 kB / 492.4 MB, free: 11.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.391, allocations: 0 / 492.4 MB, free: 11.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001296/0.3923, allocations: 348 kB / 492.8 MB, free: 11.37 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.007346/0.3996, allocations: 2.923 MB / 495.7 MB, free: 8.402 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00456/0.4042, allocations: 1.96 MB / 497.7 MB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.4042, allocations: 0 / 497.7 MB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00277/0.407, allocations: 1.27 MB / 498.9 MB, free: 5.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.4081, allocations: 195.4 kB / 499.1 MB, free: 4.828 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01855/0.4266, allocations: 8.889 MB / 0.4961 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.4272, allocations: 0.9525 MB / 0.497 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004335/0.4276, allocations: 110.6 kB / 0.4972 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004387/0.4281, allocations: 283.3 kB / 0.4974 GB, free: 10.41 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4281, allocations: 0 / 0.4974 GB, free: 10.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06954/0.4976, allocations: 29.17 MB / 0.5259 GB, free: 13.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/13.88, allocations: 14.81 kB / 0.5259 GB, free: 13.59 MB / 446.1 MB " [Timeout remaining time 646] (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: 16.38677069003461]