Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 196.7 kB / 17.38 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.5 MB / 244.7 MB, free: 8.082 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006793/0.0006793, allocations: 100 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002123/0.0002124, allocations: 12 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1845, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.002941/0.1875, allocations: 4.232 MB / 412.4 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.189, allocations: 1.304 MB / 413.7 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.1892, allocations: 11.94 kB / 413.7 MB, free: 22.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.1895, allocations: 99.22 kB / 413.8 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004214/0.1899, allocations: 301.9 kB / 414.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.1902, allocations: 171.7 kB / 414.2 MB, free: 21.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005667/0.1907, allocations: 0.9372 MB / 415.2 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.191, allocations: 267.2 kB / 415.4 MB, free: 20.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002913/0.1913, allocations: 362.7 kB / 415.8 MB, free: 19.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.1916, allocations: 406.3 kB / 416.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.682e-05/0.1917, allocations: 59.94 kB / 416.2 MB, free: 19.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.1918, allocations: 60 kB / 416.3 MB, free: 19.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.398e-05/0.1919, allocations: 159.4 kB / 416.5 MB, free: 19.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002618/0.1922, allocations: 443.9 kB / 416.9 MB, free: 18.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000413/0.1926, allocations: 0.7829 MB / 417.7 MB, free: 18.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1926, allocations: 0 / 417.7 MB, free: 18.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1926, allocations: 0 / 417.7 MB, free: 18.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1926, allocations: 4 kB / 417.7 MB, free: 18.09 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001481/0.1941, allocations: 1.069 MB / 418.7 MB, free: 16.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1942, allocations: 12.03 kB / 418.8 MB, free: 16.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/0.1943, allocations: 115.8 kB / 418.9 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.1944, allocations: 99.81 kB / 419 MB, free: 16.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005068/0.1949, allocations: 0.5084 MB / 419.5 MB, free: 16.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.1951, allocations: 109.3 kB / 419.6 MB, free: 16.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.33e-05/0.1951, allocations: 52.38 kB / 419.6 MB, free: 16.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.1962, allocations: 0.8127 MB / 420.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1962, allocations: 4 kB / 420.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.328e-05/0.1963, allocations: 32 kB / 420.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.1963, allocations: 12 kB / 420.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.1974, allocations: 0.536 MB / 421 MB, free: 14.5 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.002445/0.1998, allocations: 2.194 MB / 423.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.2009, allocations: 0.5566 MB / 423.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004882/0.2014, allocations: 278.4 kB / 424.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.2014, allocations: 17.64 kB / 424.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006368/0.2021, allocations: 338.9 kB / 424.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 2.505e-06/0.2021, allocations: 0 / 424.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004238/0.2063, allocations: 1.595 MB / 426 MB, free: 9.324 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.2065, allocations: 0.831 MB / 426.8 MB, free: 8.297 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004641/0.207, allocations: 0.5823 MB / 427.4 MB, free: 7.703 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.207, allocations: 41.7 kB / 427.5 MB, free: 7.656 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.2072, allocations: 336.7 kB / 427.8 MB, free: 7.324 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.415e-05/0.2073, allocations: 189.2 kB / 428 MB, free: 7.137 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.2073, allocations: 16 kB / 428 MB, free: 7.121 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.866e-05/0.2074, allocations: 382.7 kB / 428.4 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005129/0.2079, allocations: 221 kB / 428.6 MB, free: 6.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006241/0.2085, allocations: 0.5364 MB / 429.1 MB, free: 5.863 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00099/0.2095, allocations: 0.5888 MB / 429.7 MB, free: 5.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2095, allocations: 3.938 kB / 429.7 MB, free: 5.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001508/0.2111, allocations: 0.8663 MB / 430.6 MB, free: 4.336 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.2111, allocations: 59.41 kB / 430.6 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2111, allocations: 4 kB / 430.6 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000606/0.2117, allocations: 240.6 kB / 430.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000556/0.2123, allocations: 123.8 kB / 431 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005092/0.2174, allocations: 4.287 MB / 435.3 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000658/0.2181, allocations: 95.38 kB / 435.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.2181, allocations: 27.98 kB / 435.4 MB, free: 15.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * 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: 2 * 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 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002705/0.2184, allocations: 209.7 kB / 435.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/0.2185, allocations: 79.16 kB / 435.7 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001253/0.2186, allocations: 82.78 kB / 435.8 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.2186, allocations: 8 kB / 435.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.2186, allocations: 0 / 435.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001943/0.2206, allocations: 1.097 MB / 436.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.223, allocations: 1.583 MB / 438.4 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2231, allocations: 7.938 kB / 438.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005927/0.2237, allocations: 111.9 kB / 438.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004957/0.2242, allocations: 177.6 kB / 438.7 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.2242, allocations: 16 kB / 438.7 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004213/0.2284, allocations: 3.66 MB / 442.4 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2284, allocations: 0 / 442.4 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002151/0.2306, allocations: 1.078 MB / 443.5 MB, free: 6.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.2308, allocations: 212.1 kB / 443.7 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.988e-05/0.2309, allocations: 16 kB / 443.7 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005684/0.2315, allocations: 55.86 kB / 443.8 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.2317, allocations: 60.48 kB / 443.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.2317, allocations: 15.98 kB / 443.8 MB, free: 6.262 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004206/0.2321, allocations: 411.1 kB / 444.2 MB, free: 5.867 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2322, allocations: 0 / 444.2 MB, free: 5.867 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006669/0.2328, allocations: 256 kB / 444.5 MB, free: 5.617 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00244/0.2353, allocations: 1.632 MB / 446.1 MB, free: 3.953 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.2372, allocations: 1.054 MB / 447.2 MB, free: 2.848 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.2372, allocations: 4 kB / 447.2 MB, free: 2.844 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008731/0.2381, allocations: 0.5555 MB / 447.7 MB, free: 2.262 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.239, allocations: 205.2 kB / 447.9 MB, free: 2.062 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006762/0.2457, allocations: 4.355 MB / 452.3 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.2462, allocations: 0.9199 MB / 453.2 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/0.2465, allocations: 263.3 kB / 453.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2465, allocations: 0 / 453.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.94/4.187, allocations: 17.38 MB / 470.8 MB, free: 11.01 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches