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.001432/0.001432, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001457/0.001457, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.327/1.327, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 47.75 kB / 300.2 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.097/0.09826, allocations: 49.45 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005863/0.1042, allocations: 4.375 MB / 354.1 MB, free: 280 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.1067, allocations: 1.207 MB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005351/0.1072, allocations: 8 kB / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005401/0.1078, allocations: 103.2 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008041/0.1086, allocations: 238.2 kB / 355.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005263/0.1092, allocations: 167.8 kB / 355.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.1104, allocations: 0.9315 MB / 356.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004078/0.1108, allocations: 248.8 kB / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006033/0.1114, allocations: 358.7 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006369/0.112, allocations: 402.3 kB / 357.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001701/0.1122, allocations: 76 kB / 357.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001922/0.1124, allocations: 80 kB / 357.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.1126, allocations: 171.4 kB / 358 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005148/0.1131, allocations: 414.1 kB / 358.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008749/0.114, allocations: 0.911 MB / 359.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.114, allocations: 0 / 359.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.114, allocations: 0 / 359.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.141e-05/0.114, allocations: 0 / 359.3 MB, free: 10.98 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.002409/0.1164, allocations: 1.105 MB / 360.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.1165, allocations: 15.97 kB / 360.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001501/0.1167, allocations: 91.7 kB / 360.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.1168, allocations: 99.84 kB / 360.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006828/0.1175, allocations: 488.5 kB / 361.1 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001525/0.1177, allocations: 92.97 kB / 361.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.351e-05/0.1178, allocations: 48.38 kB / 361.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.1189, allocations: 0.6631 MB / 361.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.119, allocations: 0 / 361.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.745e-05/0.119, allocations: 23.98 kB / 361.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.1191, allocations: 12 kB / 362 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1201, allocations: 455.6 kB / 362.4 MB, free: 7.711 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.002892/0.123, allocations: 1.975 MB / 364.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.1249, allocations: 0.6783 MB / 365.1 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005474/0.1254, allocations: 269.5 kB / 365.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.669e-05/0.1255, allocations: 12.42 kB / 365.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.1255, allocations: 54.92 kB / 365.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.674e-06/0.1255, allocations: 0 / 365.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005168/0.1307, allocations: 1.472 MB / 366.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002386/0.131, allocations: 0.5683 MB / 367.4 MB, free: 2.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006291/0.1316, allocations: 0.5421 MB / 368 MB, free: 1.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/0.1317, allocations: 37.7 kB / 368 MB, free: 1.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.1319, allocations: 284.5 kB / 368.3 MB, free: 1.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.132, allocations: 189.2 kB / 368.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.1322, allocations: 110.2 kB / 368.6 MB, free: 1.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1324, allocations: 378.7 kB / 368.9 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004883/0.1329, allocations: 193 kB / 369.1 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006414/0.1335, allocations: 412.4 kB / 369.5 MB, free: 92 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.183/0.3165, allocations: 486.9 kB / 370 MB, free: 25.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3165, allocations: 0.8438 kB / 370 MB, free: 25.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002532/0.3191, allocations: 0.8077 MB / 370.8 MB, free: 25.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.3191, allocations: 32.53 kB / 370.8 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.3192, allocations: 2.312 kB / 370.8 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.3203, allocations: 221.2 kB / 371.1 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007773/0.3211, allocations: 125.7 kB / 371.2 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006795/0.3279, allocations: 5.605 MB / 376.8 MB, free: 20.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007325/0.3286, allocations: 88.27 kB / 376.9 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/0.3287, allocations: 20.28 kB / 376.9 MB, free: 20.6 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.0002815/0.329, allocations: 189.6 kB / 377.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.3291, allocations: 76.03 kB / 377.2 MB, free: 20.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002328/0.3314, allocations: 0.7731 MB / 377.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.106e-06/0.3315, allocations: 10.81 kB / 377.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3315, allocations: 0.75 kB / 377.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002094/0.3336, allocations: 1.043 MB / 379 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.3368, allocations: 1.497 MB / 380.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3368, allocations: 2.281 kB / 380.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007843/0.3376, allocations: 126.9 kB / 380.6 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008941/0.3385, allocations: 181.1 kB / 380.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.106e-05/0.3385, allocations: 12.98 kB / 380.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004622/0.3432, allocations: 3.799 MB / 384.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.3432, allocations: 5.312 kB / 384.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.346, allocations: 1.07 MB / 385.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/0.3463, allocations: 198.6 kB / 385.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.022e-05/0.3464, allocations: 13.53 kB / 385.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005185/0.3469, allocations: 44.19 kB / 385.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.347, allocations: 44.09 kB / 386 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.3471, allocations: 15.92 kB / 386 MB, free: 14.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004812/0.3476, allocations: 385.5 kB / 386.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3476, allocations: 0 / 386.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007977/0.3484, allocations: 222 kB / 386.6 MB, free: 14.35 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.003105/0.3515, allocations: 1.641 MB / 388.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002446/0.3539, allocations: 1.051 MB / 389.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.354, allocations: 1.125 kB / 389.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009334/0.3549, allocations: 0.5385 MB / 389.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009018/0.3558, allocations: 184.7 kB / 390 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.366, allocations: 6.53 MB / 396.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.3664, allocations: 0.8873 MB / 397.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004223/0.3668, allocations: 84.81 kB / 397.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/0.3671, allocations: 235.5 kB / 397.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3671, allocations: 0 / 397.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0385/0.4056, allocations: 19.55 MB / 417.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.4058, allocations: 244.4 kB / 417.5 MB, free: 5.414 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.337/2.743, allocations: 3.938 kB / 417.5 MB, free: 5.41 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