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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.001071, allocations: 102.8 kB / 16.92 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 191.3 kB / 17.85 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 47.86 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07512/0.07618, allocations: 49.44 MB / 350.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004611/0.08081, allocations: 4.357 MB / 354.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.08265, allocations: 1.215 MB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002942/0.08296, allocations: 11.94 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003426/0.08332, allocations: 138.8 kB / 355.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005164/0.08385, allocations: 265.7 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.08423, allocations: 191.7 kB / 356.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008214/0.08506, allocations: 0.924 MB / 357.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003066/0.08538, allocations: 248.8 kB / 357.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003786/0.08576, allocations: 362.7 kB / 357.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004263/0.0862, allocations: 398.3 kB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.08632, allocations: 80 kB / 358.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.08646, allocations: 80 kB / 358.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.08659, allocations: 171.4 kB / 358.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003582/0.08696, allocations: 418 kB / 359 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.08765, allocations: 0.9071 MB / 359.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.08766, allocations: 0 / 359.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.08766, allocations: 3.938 kB / 359.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.08769, allocations: 0 / 359.9 MB, free: 10.59 MB / 302.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.001745/0.08944, allocations: 1.116 MB / 361 MB, free: 9.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.08949, allocations: 12.03 kB / 361 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.08961, allocations: 95.7 kB / 361.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.08975, allocations: 87.91 kB / 361.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005493/0.0903, allocations: 484.6 kB / 361.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.09043, allocations: 96.95 kB / 361.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.908e-05/0.09051, allocations: 48.38 kB / 361.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009938/0.09151, allocations: 0.6592 MB / 362.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.09154, allocations: 0 / 362.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.825e-05/0.09159, allocations: 20 kB / 362.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.0916, allocations: 8 kB / 362.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009604/0.09257, allocations: 459.6 kB / 362.9 MB, free: 7.332 MB / 302.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.002642/0.09522, allocations: 1.975 MB / 364.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.09691, allocations: 0.6868 MB / 365.6 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.09743, allocations: 270 kB / 365.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.09748, allocations: 16.42 kB / 365.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.09751, allocations: 39 kB / 365.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.502e-06/0.09752, allocations: 0 / 365.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004367/0.1019, allocations: 1.48 MB / 367.4 MB, free: 2.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002053/0.1021, allocations: 0.5644 MB / 368 MB, free: 1.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005227/0.1026, allocations: 0.5343 MB / 368.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.1027, allocations: 37.7 kB / 368.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.1029, allocations: 292.5 kB / 368.8 MB, free: 1.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.103, allocations: 189.1 kB / 369 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.1032, allocations: 118.2 kB / 369.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1033, allocations: 382.6 kB / 369.5 MB, free: 372 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/0.1038, allocations: 189 kB / 369.7 MB, free: 184 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.129/0.2328, allocations: 411 kB / 370.1 MB, free: 25.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.234, allocations: 491.7 kB / 370.6 MB, free: 25.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.234, allocations: 1.469 kB / 370.6 MB, free: 25.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002511/0.2366, allocations: 0.8068 MB / 371.4 MB, free: 25.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.2366, allocations: 31.58 kB / 371.4 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.2366, allocations: 1.312 kB / 371.4 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.2377, allocations: 225.3 kB / 371.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007074/0.2384, allocations: 128.8 kB / 371.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006632/0.245, allocations: 5.599 MB / 377.3 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007318/0.2458, allocations: 79.92 kB / 377.4 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.348e-05/0.2459, allocations: 22.92 kB / 377.4 MB, free: 20.36 MB / 302.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.0003197/0.2462, allocations: 194.3 kB / 377.6 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.2464, allocations: 72.28 kB / 377.7 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.2485, allocations: 0.7726 MB / 378.5 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2485, allocations: 8.531 kB / 378.5 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2485, allocations: 2.141 kB / 378.5 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001867/0.2504, allocations: 1.039 MB / 379.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002871/0.2533, allocations: 1.504 MB / 381 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2533, allocations: 1 kB / 381 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000687/0.254, allocations: 127.8 kB / 381.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007645/0.2548, allocations: 181.9 kB / 381.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.582e-05/0.2548, allocations: 9.297 kB / 381.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004093/0.2589, allocations: 3.799 MB / 385.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2589, allocations: 5.609 kB / 385.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002523/0.2615, allocations: 1.069 MB / 386.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002714/0.2618, allocations: 205.5 kB / 386.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.2619, allocations: 12.8 kB / 386.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004805/0.2624, allocations: 38.41 kB / 386.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.2625, allocations: 47.55 kB / 386.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/0.2625, allocations: 16.62 kB / 386.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004305/0.263, allocations: 385.7 kB / 386.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.263, allocations: 0 / 386.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007324/0.2637, allocations: 219.9 kB / 387.1 MB, free: 14.11 MB / 302.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.00273/0.2664, allocations: 1.643 MB / 388.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.2686, allocations: 1.04 MB / 389.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.2686, allocations: 2.094 kB / 389.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008443/0.2695, allocations: 0.5349 MB / 390.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.2703, allocations: 185.2 kB / 390.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008805/0.2791, allocations: 6.327 MB / 396.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.2794, allocations: 0.8917 MB / 397.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003386/0.2797, allocations: 84.09 kB / 397.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.28, allocations: 232.7 kB / 398 MB, free: 7.469 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.28, allocations: 0 / 398 MB, free: 7.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.969/4.249, allocations: 19.9 MB / 417.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/16.29, allocations: 10.62 kB / 418 MB, free: 5.066 MB / 318.1 MB (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 --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) 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) Reference file matches