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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 202.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 226.6 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007079/0.0007079, allocations: 102.6 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000194/0.0001941, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1818, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003011/0.1848, allocations: 4.403 MB / 412.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.1862, allocations: 1.223 MB / 413.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001972/0.1864, allocations: 8 kB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.1866, allocations: 107.2 kB / 413.8 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003981/0.187, allocations: 289.7 kB / 414.1 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.1873, allocations: 163.7 kB / 414.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006634/0.1879, allocations: 1.09 MB / 415.3 MB, free: 20.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.1883, allocations: 282.1 kB / 415.6 MB, free: 20.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003475/0.1886, allocations: 398.5 kB / 416 MB, free: 19.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003641/0.189, allocations: 454.1 kB / 416.4 MB, free: 19.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.37e-05/0.1891, allocations: 68 kB / 416.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.1892, allocations: 67.94 kB / 416.6 MB, free: 19.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.1893, allocations: 183.3 kB / 416.7 MB, free: 18.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003019/0.1897, allocations: 487.6 kB / 417.2 MB, free: 18.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004952/0.1902, allocations: 0.8851 MB / 418.1 MB, free: 17.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1902, allocations: 0 / 418.1 MB, free: 17.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1902, allocations: 0 / 418.1 MB, free: 17.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.1902, allocations: 4 kB / 418.1 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.001695/0.1919, allocations: 1.193 MB / 419.3 MB, free: 16.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1919, allocations: 12.03 kB / 419.3 MB, free: 16.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.1921, allocations: 103.8 kB / 419.4 MB, free: 16.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.1927, allocations: 0.5948 MB / 420 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002393/0.193, allocations: 182.9 kB / 420.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.172e-05/0.1931, allocations: 60.12 kB / 420.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.1942, allocations: 0.8627 MB / 421.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1942, allocations: 0 / 421.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.938e-05/0.1943, allocations: 31.98 kB / 421.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.1943, allocations: 16 kB / 421.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.1956, allocations: 0.661 MB / 421.8 MB, free: 13.65 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.002482/0.198, allocations: 2.073 MB / 423.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.1991, allocations: 0.8905 MB / 424.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006901/0.1999, allocations: 422.6 kB / 425.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.975e-05/0.1999, allocations: 20.58 kB / 425.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.1999, allocations: 51.14 kB / 425.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 1.914e-06/0.2, allocations: 0 / 425.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.004542/0.2045, allocations: 1.984 MB / 427.2 MB, free: 7.953 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.2047, allocations: 0.8234 MB / 428.1 MB, free: 6.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005314/0.2052, allocations: 0.6215 MB / 428.7 MB, free: 6.301 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.2053, allocations: 45.7 kB / 428.7 MB, free: 6.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.2054, allocations: 341 kB / 429.1 MB, free: 5.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.2056, allocations: 256.2 kB / 429.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.599e-05/0.2056, allocations: 16 kB / 429.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.703e-05/0.2057, allocations: 382.8 kB / 429.7 MB, free: 5.258 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005841/0.2063, allocations: 305.8 kB / 430 MB, free: 4.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007262/0.207, allocations: 0.582 MB / 430.6 MB, free: 4.281 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.2082, allocations: 0.7441 MB / 431.3 MB, free: 3.508 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2082, allocations: 4 kB / 431.3 MB, free: 3.504 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002254/0.2105, allocations: 1.188 MB / 432.5 MB, free: 2.277 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.2105, allocations: 93.09 kB / 432.6 MB, free: 2.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2105, allocations: 0 / 432.6 MB, free: 2.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005876/0.2111, allocations: 255.2 kB / 432.9 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006198/0.2118, allocations: 147.8 kB / 433 MB, free: 1.762 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006382/0.2182, allocations: 6.488 MB / 439.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008047/0.219, allocations: 127.3 kB / 439.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.678e-05/0.219, allocations: 24 kB / 439.6 MB, free: 10.6 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.0003157/0.2194, allocations: 213.7 kB / 439.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.2195, allocations: 90.97 kB / 439.9 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.2197, allocations: 95.33 kB / 440 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.2197, allocations: 8 kB / 440 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.2197, allocations: 3.938 kB / 440 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002382/0.2221, allocations: 1.339 MB / 441.4 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.2257, allocations: 2.015 MB / 443.4 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.2257, allocations: 7.938 kB / 443.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006605/0.2264, allocations: 147.8 kB / 443.5 MB, free: 6.484 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005091/0.2269, allocations: 214.5 kB / 443.8 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.227, allocations: 16 kB / 443.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005749/0.2327, allocations: 5.066 MB / 448.8 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2327, allocations: 0 / 448.8 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003293/0.236, allocations: 1.523 MB / 450.4 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004181/0.2365, allocations: 243.8 kB / 450.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.2366, allocations: 20 kB / 450.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006784/0.2373, allocations: 71.89 kB / 450.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.2375, allocations: 64.55 kB / 450.7 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.889e-05/0.2375, allocations: 16 kB / 450.8 MB, free: 14.81 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005426/0.2381, allocations: 455 kB / 451.2 MB, free: 14.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2381, allocations: 0 / 451.2 MB, free: 14.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008737/0.239, allocations: 283.7 kB / 451.5 MB, free: 14.1 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.0001626/0.2392, allocations: 124.9 kB / 451.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.2414, allocations: 1.399 MB / 453 MB, free: 12.47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.2414, allocations: 4 kB / 453 MB, free: 12.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.2427, allocations: 0.8121 MB / 453.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.2438, allocations: 222.8 kB / 454 MB, free: 11.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/0.2464, allocations: 1.953 MB / 456 MB, free: 9.418 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.2468, allocations: 0.9362 MB / 456.9 MB, free: 8.449 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.247, allocations: 67.42 kB / 457 MB, free: 8.383 MB / 330.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2471, allocations: 4 kB / 457 MB, free: 8.379 MB / 330.7 MB Notification: Performance of Templates: time 0.02387/0.2709, allocations: 22.45 MB / 479.4 MB, free: 2.012 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (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 & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/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