Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007252/0.0007252, allocations: 104.4 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002054/0.0002056, allocations: 4 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.178, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003171/0.1812, allocations: 4.407 MB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1826, allocations: 1.217 MB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.1829, allocations: 8 kB / 413.8 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.1831, allocations: 111.1 kB / 413.9 MB, free: 21.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004107/0.1835, allocations: 289.7 kB / 414.1 MB, free: 21.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.1838, allocations: 163.7 kB / 414.3 MB, free: 21.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006222/0.1844, allocations: 1.09 MB / 415.4 MB, free: 20.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.1847, allocations: 271.3 kB / 415.7 MB, free: 20.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.185, allocations: 398.5 kB / 416.1 MB, free: 19.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003/0.1853, allocations: 466.1 kB / 416.5 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.031e-05/0.1854, allocations: 64 kB / 416.6 MB, free: 19.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.1855, allocations: 72 kB / 416.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.753e-05/0.1856, allocations: 179.3 kB / 416.8 MB, free: 18.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002795/0.1859, allocations: 495.6 kB / 417.3 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.1864, allocations: 0.8764 MB / 418.2 MB, free: 17.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1864, allocations: 0 / 418.2 MB, free: 17.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1864, allocations: 0 / 418.2 MB, free: 17.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1864, allocations: 0 / 418.2 MB, free: 17.59 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001605/0.188, allocations: 1.197 MB / 419.4 MB, free: 16.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.188, allocations: 8.031 kB / 419.4 MB, free: 16.31 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.1882, allocations: 123.8 kB / 419.5 MB, free: 16.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.1883, allocations: 111.7 kB / 419.6 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006303/0.1889, allocations: 0.5949 MB / 420.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.1892, allocations: 174.9 kB / 420.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.429e-05/0.1893, allocations: 63.94 kB / 420.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.1904, allocations: 0.8939 MB / 421.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.1904, allocations: 0 / 421.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.563e-05/0.1905, allocations: 28 kB / 421.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.1905, allocations: 12 kB / 421.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.1918, allocations: 0.6687 MB / 422 MB, free: 13.48 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.002393/0.1942, allocations: 2.108 MB / 424.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.1953, allocations: 0.8913 MB / 425 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007033/0.196, allocations: 422.6 kB / 425.5 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.055e-05/0.1961, allocations: 16.64 kB / 425.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.1961, allocations: 51.22 kB / 425.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 2.134e-06/0.1961, allocations: 0 / 425.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.0044/0.2005, allocations: 1.992 MB / 427.5 MB, free: 7.742 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.2006, allocations: 0.8234 MB / 428.3 MB, free: 6.723 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000499/0.2011, allocations: 0.6331 MB / 429 MB, free: 6.078 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.2012, allocations: 45.7 kB / 429 MB, free: 6.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.2014, allocations: 344.9 kB / 429.3 MB, free: 5.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.2015, allocations: 256.2 kB / 429.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/0.2015, allocations: 20 kB / 429.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.188e-05/0.2016, allocations: 382.8 kB / 430 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006027/0.2022, allocations: 301.8 kB / 430.3 MB, free: 4.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00073/0.2029, allocations: 0.5789 MB / 430.9 MB, free: 4.059 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.2042, allocations: 0.7364 MB / 431.6 MB, free: 3.293 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2042, allocations: 0 / 431.6 MB, free: 3.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002248/0.2065, allocations: 1.196 MB / 432.8 MB, free: 2.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.2065, allocations: 89.09 kB / 432.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.2065, allocations: 11.92 kB / 432.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005862/0.2071, allocations: 247.3 kB / 433.1 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.2077, allocations: 151.8 kB / 433.3 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006571/0.2143, allocations: 6.482 MB / 439.8 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009278/0.2152, allocations: 127.3 kB / 439.9 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.181e-05/0.2153, allocations: 24 kB / 439.9 MB, free: 10.38 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000364/0.2157, allocations: 217.7 kB / 440.1 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.2158, allocations: 87 kB / 440.2 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.216, allocations: 95.52 kB / 440.3 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.216, allocations: 8 kB / 440.3 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.216, allocations: 7.938 kB / 440.3 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002466/0.2185, allocations: 1.335 MB / 441.7 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003747/0.2222, allocations: 2.039 MB / 443.7 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2223, allocations: 0 / 443.7 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006809/0.2229, allocations: 155.8 kB / 443.8 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005394/0.2235, allocations: 222.3 kB / 444.1 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/0.2236, allocations: 19.98 kB / 444.1 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006019/0.2296, allocations: 5.051 MB / 449.1 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2296, allocations: 0 / 449.1 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00338/0.233, allocations: 1.531 MB / 450.7 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004036/0.2334, allocations: 235.9 kB / 450.9 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.2336, allocations: 19.94 kB / 450.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007387/0.2343, allocations: 71.94 kB / 451 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.2345, allocations: 64.56 kB / 451 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.394e-05/0.2346, allocations: 19.98 kB / 451.1 MB, free: 14.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005851/0.2352, allocations: 447.1 kB / 451.5 MB, free: 14.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2352, allocations: 4 kB / 451.5 MB, free: 14.13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009357/0.2361, allocations: 287.6 kB / 451.8 MB, free: 13.85 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003613/0.2398, allocations: 2.091 MB / 453.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.242, allocations: 1.406 MB / 455.3 MB, free: 10.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.242, allocations: 4 kB / 455.3 MB, free: 10.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.2434, allocations: 0.8082 MB / 456.1 MB, free: 9.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.2445, allocations: 221.7 kB / 456.3 MB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009145/0.2537, allocations: 5.45 MB / 461.8 MB, free: 3.582 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.2542, allocations: 0.9479 MB / 462.7 MB, free: 2.609 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004202/0.2546, allocations: 299.3 kB / 463 MB, free: 2.316 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2546, allocations: 0 / 463 MB, free: 2.316 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.567/4.822, allocations: 23.95 MB / 487 MB, free: 10.29 MB / 362.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches