Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009173/0.0009173, allocations: 199.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006894/0.0006894, allocations: 96.19 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002134/0.0002135, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.183, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.002637/0.1856, allocations: 3.817 MB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.1869, allocations: 1.114 MB / 413.1 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.187, allocations: 11.94 kB / 413.1 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.1873, allocations: 90.38 kB / 413.2 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000344/0.1876, allocations: 230.2 kB / 413.4 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.1879, allocations: 155.8 kB / 413.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005081/0.1884, allocations: 0.8539 MB / 414.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.1887, allocations: 226.1 kB / 414.6 MB, free: 21.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.1889, allocations: 322.8 kB / 414.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.1892, allocations: 362.5 kB / 415.3 MB, free: 20.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.105e-05/0.1893, allocations: 48 kB / 415.3 MB, free: 20.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.1894, allocations: 56 kB / 415.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.043e-05/0.1895, allocations: 135.4 kB / 415.5 MB, free: 20.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002282/0.1897, allocations: 400 kB / 415.9 MB, free: 19.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.1901, allocations: 0.6738 MB / 416.6 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.203e-05/0.1901, allocations: 0 / 416.6 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1901, allocations: 0 / 416.6 MB, free: 19.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.1901, allocations: 0 / 416.6 MB, free: 19.22 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.00135/0.1915, allocations: 0.9926 MB / 417.6 MB, free: 18.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.1915, allocations: 12.03 kB / 417.6 MB, free: 18.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1916, allocations: 91.61 kB / 417.7 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.1918, allocations: 95.98 kB / 417.8 MB, free: 17.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.1923, allocations: 480.6 kB / 418.2 MB, free: 17.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.1924, allocations: 101 kB / 418.3 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-05/0.1925, allocations: 48.38 kB / 418.4 MB, free: 17.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009291/0.1934, allocations: 0.6709 MB / 419 MB, free: 16.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1934, allocations: 0 / 419 MB, free: 16.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.1935, allocations: 24 kB / 419.1 MB, free: 16.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.1935, allocations: 12 kB / 419.1 MB, free: 16.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009055/0.1944, allocations: 483.6 kB / 419.6 MB, free: 16.04 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.002333/0.1968, allocations: 1.99 MB / 421.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.1984, allocations: 0.7067 MB / 422.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004765/0.1989, allocations: 282.8 kB / 422.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.199, allocations: 4.438 kB / 422.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.199, allocations: 54.88 kB / 422.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.673e-06/0.199, allocations: 0 / 422.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.004333/0.2033, allocations: 1.593 MB / 424.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.52e-05/0.2034, allocations: 0.5683 MB / 424.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000443/0.2039, allocations: 0.5341 MB / 425.3 MB, free: 9.934 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.2039, allocations: 45.64 kB / 425.3 MB, free: 9.883 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.2041, allocations: 284.5 kB / 425.6 MB, free: 9.598 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.055e-05/0.2042, allocations: 193.2 kB / 425.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/0.2042, allocations: 8 kB / 425.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.036e-05/0.2043, allocations: 374.7 kB / 426.2 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.2047, allocations: 209 kB / 426.4 MB, free: 8.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000533/0.2053, allocations: 424.3 kB / 426.8 MB, free: 8.328 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009126/0.2062, allocations: 0.5044 MB / 427.3 MB, free: 7.805 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2062, allocations: 7.938 kB / 427.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001954/0.2082, allocations: 0.8537 MB / 428.2 MB, free: 6.918 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.2082, allocations: 29.7 kB / 428.2 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.2082, allocations: 4 kB / 428.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008775/0.2091, allocations: 230.3 kB / 428.4 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006406/0.2098, allocations: 131.8 kB / 428.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005434/0.2152, allocations: 5.238 MB / 433.8 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.2158, allocations: 87.55 kB / 433.9 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.2159, allocations: 19.98 kB / 433.9 MB, free: 0.7734 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002118/0.2161, allocations: 189.8 kB / 434.1 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.398e-05/0.2162, allocations: 75.09 kB / 434.1 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002158/0.2183, allocations: 0.828 MB / 435 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.2184, allocations: 8 kB / 435 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.2184, allocations: 0 / 435 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002189/0.2206, allocations: 1.082 MB / 436.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003114/0.2237, allocations: 1.549 MB / 437.6 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.2237, allocations: 0 / 437.6 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007219/0.2244, allocations: 139.8 kB / 437.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008273/0.2253, allocations: 185.7 kB / 437.9 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-05/0.2253, allocations: 11.94 kB / 437.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004903/0.2302, allocations: 3.542 MB / 441.5 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2302, allocations: 0 / 441.5 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.2331, allocations: 1.128 MB / 442.6 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.2334, allocations: 204.1 kB / 442.8 MB, free: 7.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.2335, allocations: 16 kB / 442.8 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005192/0.2341, allocations: 39.97 kB / 442.9 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.2343, allocations: 48.48 kB / 442.9 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.2343, allocations: 15.94 kB / 442.9 MB, free: 7.203 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004748/0.2348, allocations: 386.8 kB / 443.3 MB, free: 6.828 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2348, allocations: 0 / 443.3 MB, free: 6.828 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007413/0.2355, allocations: 223.7 kB / 443.5 MB, free: 6.609 MB / 314.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003048/0.2386, allocations: 1.681 MB / 445.2 MB, free: 4.895 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.2408, allocations: 1.073 MB / 446.3 MB, free: 3.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.2408, allocations: 3.953 kB / 446.3 MB, free: 3.766 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000949/0.2418, allocations: 0.5396 MB / 446.8 MB, free: 3.203 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008446/0.2427, allocations: 184.7 kB / 447 MB, free: 3.023 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007156/0.2498, allocations: 4.23 MB / 451.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.2503, allocations: 0.8879 MB / 452.1 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.2507, allocations: 239.4 kB / 452.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2507, allocations: 0 / 452.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.907/4.158, allocations: 16.53 MB / 468.9 MB, free: 13.01 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches