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.001073/0.001073, allocations: 110.4 kB / 16.51 MB, free: 6.707 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.001129/0.001129, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.243/1.243, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008272/0.0008272, allocations: 48.89 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07591/0.07675, allocations: 49.44 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004424/0.08121, allocations: 4.387 MB / 353.9 MB, free: 356 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.08265, allocations: 1.207 MB / 355.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001679/0.08283, allocations: 11.94 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002706/0.08312, allocations: 103.3 kB / 355.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003794/0.08351, allocations: 234.2 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.0838, allocations: 171.8 kB / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006881/0.0845, allocations: 0.8854 MB / 356.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.08478, allocations: 225 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003066/0.0851, allocations: 338.7 kB / 357 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003333/0.08544, allocations: 394.3 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.952e-05/0.08554, allocations: 56 kB / 357.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.08567, allocations: 56 kB / 357.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.08579, allocations: 143.4 kB / 357.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003502/0.08615, allocations: 394 kB / 358.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007468/0.0869, allocations: 0.8875 MB / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.08691, allocations: 0 / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.08692, allocations: 0 / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.08693, allocations: 0 / 358.9 MB, free: 11.26 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.001937/0.08887, allocations: 1.117 MB / 360.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.08892, allocations: 12.03 kB / 360.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001349/0.08906, allocations: 87.7 kB / 360.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.08921, allocations: 91.91 kB / 360.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005933/0.08981, allocations: 484.6 kB / 360.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.08995, allocations: 96.95 kB / 360.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.921e-05/0.09002, allocations: 48.38 kB / 360.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.09106, allocations: 0.6592 MB / 361.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.09108, allocations: 4 kB / 361.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.964e-05/0.09114, allocations: 24 kB / 361.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.09115, allocations: 12 kB / 361.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000958/0.09211, allocations: 455.6 kB / 362 MB, free: 7.992 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.002616/0.09474, allocations: 1.979 MB / 364 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.09647, allocations: 0.6751 MB / 364.7 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.097, allocations: 274 kB / 364.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.09705, allocations: 12.42 kB / 364.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.09708, allocations: 43 kB / 365 MB, free: 4.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.593e-06/0.09708, allocations: 0 / 365 MB, free: 4.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004595/0.1017, allocations: 1.48 MB / 366.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00019/0.1019, allocations: 0.5643 MB / 367 MB, free: 2.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005468/0.1024, allocations: 0.5343 MB / 367.6 MB, free: 2.059 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.857e-05/0.1025, allocations: 45.69 kB / 367.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.1027, allocations: 284.5 kB / 367.9 MB, free: 1.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.1028, allocations: 193.1 kB / 368.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.103, allocations: 110.2 kB / 368.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1031, allocations: 374.7 kB / 368.5 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.1036, allocations: 193 kB / 368.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000603/0.1042, allocations: 416.3 kB / 369.1 MB, free: 380 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1407/0.2449, allocations: 489 kB / 369.6 MB, free: 25.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.2449, allocations: 0 / 369.6 MB, free: 25.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002367/0.2473, allocations: 0.8074 MB / 370.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.2473, allocations: 31.53 kB / 370.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2473, allocations: 2.594 kB / 370.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009543/0.2483, allocations: 220.5 kB / 370.7 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007051/0.249, allocations: 132.4 kB / 370.8 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2342/0.4832, allocations: 5.146 MB / 375.9 MB, free: 21.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007904/0.484, allocations: 78.08 kB / 376 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.4841, allocations: 19.34 kB / 376 MB, free: 21.17 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.0002778/0.4844, allocations: 198 kB / 376.2 MB, free: 21.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.4845, allocations: 74.59 kB / 376.3 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002147/0.4866, allocations: 0.7733 MB / 377.1 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4867, allocations: 6.25 kB / 377.1 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.4867, allocations: 1.656 kB / 377.1 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001864/0.4885, allocations: 1.042 MB / 378.1 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002743/0.4913, allocations: 1.503 MB / 379.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.4913, allocations: 0 / 379.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006757/0.492, allocations: 127.4 kB / 379.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007545/0.4927, allocations: 170.9 kB / 379.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.4928, allocations: 13.91 kB / 379.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004861/0.4977, allocations: 3.488 MB / 383.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4977, allocations: 0 / 383.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00257/0.5002, allocations: 1.065 MB / 384.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.5005, allocations: 203.6 kB / 384.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/0.5006, allocations: 19.44 kB / 384.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004723/0.5011, allocations: 38.14 kB / 384.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.5012, allocations: 49.11 kB / 384.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.5012, allocations: 19.42 kB / 384.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004165/0.5016, allocations: 386.2 kB / 385.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5016, allocations: 0 / 385.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006929/0.5023, allocations: 218.6 kB / 385.4 MB, free: 15.21 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.002662/0.505, allocations: 1.631 MB / 387 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.507, allocations: 1.022 MB / 388.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.507, allocations: 1.188 kB / 388.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008565/0.5079, allocations: 0.5382 MB / 388.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.5087, allocations: 176.5 kB / 388.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009088/0.5178, allocations: 6.527 MB / 395.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.5181, allocations: 0.8916 MB / 396.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003747/0.5185, allocations: 83.75 kB / 396.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.5187, allocations: 227.2 kB / 396.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5187, allocations: 0 / 396.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.13/1.648, allocations: 18.76 MB / 415.3 MB, free: 7.562 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/1.649, allocations: 236.7 kB / 415.5 MB, free: 7.305 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/3.814, allocations: 7.875 kB / 415.5 MB, free: 7.297 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