Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 196 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007172/0.0007171, allocations: 98.41 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002061/0.0002062, allocations: 4 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1957, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.002022/0.1978, allocations: 2.458 MB / 410.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1991, allocations: 1.256 MB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.1992, allocations: 3.938 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003434/0.1996, allocations: 156.1 kB / 412 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.1999, allocations: 218.7 kB / 412.2 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.2002, allocations: 135.7 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.2005, allocations: 417.8 kB / 412.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.2007, allocations: 99.3 kB / 412.9 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.2008, allocations: 163.3 kB / 413 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.201, allocations: 191.2 kB / 413.2 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.2011, allocations: 20 kB / 413.2 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.2012, allocations: 47.98 kB / 413.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.899e-05/0.2013, allocations: 75.73 kB / 413.3 MB, free: 22.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.2014, allocations: 200.8 kB / 413.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.2017, allocations: 360.3 kB / 413.9 MB, free: 21.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2017, allocations: 2.25 kB / 413.9 MB, free: 21.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2017, allocations: 0 / 413.9 MB, free: 21.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2017, allocations: 7.938 kB / 413.9 MB, free: 21.91 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007109/0.2024, allocations: 0.6346 MB / 414.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2025, allocations: 12.03 kB / 414.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.799e-05/0.2026, allocations: 59.08 kB / 414.6 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.2026, allocations: 48.38 kB / 414.6 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.2029, allocations: 342.6 kB / 415 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.203, allocations: 16.81 kB / 415 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.203, allocations: 19.94 kB / 415 MB, free: 20.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003572/0.2033, allocations: 301.5 kB / 415.3 MB, free: 20.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.2034, allocations: 3.938 kB / 415.3 MB, free: 20.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.2034, allocations: 12 kB / 415.3 MB, free: 20.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.2034, allocations: 4 kB / 415.3 MB, free: 20.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.2036, allocations: 153.7 kB / 415.5 MB, free: 20.18 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.001007/0.2047, allocations: 0.8594 MB / 416.3 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.205, allocations: 191.9 kB / 416.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.2051, allocations: 76.84 kB / 416.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.2051, allocations: 11.92 kB / 416.6 MB, free: 18.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002129/0.2054, allocations: 128.4 kB / 416.7 MB, free: 18.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.2054, allocations: 0 / 416.7 MB, free: 18.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006405/0.206, allocations: 412 kB / 417.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.2061, allocations: 316.4 kB / 417.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.2064, allocations: 437.7 kB / 417.9 MB, free: 17.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.2064, allocations: 33.7 kB / 417.9 MB, free: 17.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.2065, allocations: 208.2 kB / 418.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.2066, allocations: 82.89 kB / 418.2 MB, free: 17.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.2066, allocations: 4 kB / 418.2 MB, free: 17.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.378e-05/0.2067, allocations: 350.8 kB / 418.5 MB, free: 16.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.2068, allocations: 55.98 kB / 418.6 MB, free: 16.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.2069, allocations: 175.9 kB / 418.8 MB, free: 16.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.2072, allocations: 175.3 kB / 418.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2072, allocations: 3.938 kB / 418.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003491/0.2075, allocations: 265.9 kB / 419.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.2076, allocations: 4 kB / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2076, allocations: 4 kB / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001099/0.2077, allocations: 36.94 kB / 419.2 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.2079, allocations: 51.91 kB / 419.3 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009298/0.2088, allocations: 1.452 MB / 420.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.209, allocations: 31.81 kB / 420.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.209, allocations: 8 kB / 420.8 MB, free: 14.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.2092, allocations: 168.2 kB / 421 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.858e-05/0.2092, allocations: 39.53 kB / 421 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.897e-05/0.2093, allocations: 43.7 kB / 421 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.2093, allocations: 7.875 kB / 421 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.2093, allocations: 4 kB / 421 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003206/0.2096, allocations: 0.5827 MB / 421.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006269/0.2102, allocations: 0.7 MB / 422.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2103, allocations: 0 / 422.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.2104, allocations: 55.84 kB / 422.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2104, allocations: 4 kB / 422.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.2105, allocations: 4 kB / 422.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2105, allocations: 4 kB / 422.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2105, allocations: 0 / 422.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.2109, allocations: 399.6 kB / 422.8 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.589e-05/0.211, allocations: 148.6 kB / 422.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.211, allocations: 4 kB / 422.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.2112, allocations: 8 kB / 422.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.2113, allocations: 24.03 kB / 423 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.2113, allocations: 4 kB / 423 MB, free: 12.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002249/0.2115, allocations: 319.1 kB / 423.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2116, allocations: 0 / 423.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003114/0.2119, allocations: 87.91 kB / 423.4 MB, free: 11.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001199/0.2131, allocations: 1.254 MB / 424.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004257/0.2135, allocations: 302.4 kB / 424.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.2135, allocations: 4 kB / 424.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.2137, allocations: 79.91 kB / 425 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.2142, allocations: 109.5 kB / 425.1 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.2166, allocations: 2.263 MB / 427.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.2168, allocations: 0.8001 MB / 428.2 MB, free: 6.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.2169, allocations: 131.4 kB / 428.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2169, allocations: 0 / 428.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.51/3.727, allocations: 6.84 MB / 435.1 MB, free: 15.89 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches