Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 108.6 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009436/0.0009437, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1875, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004014/0.1916, allocations: 5.048 MB / 412.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.1933, allocations: 1.344 MB / 413.4 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002814/0.1936, allocations: 11.94 kB / 413.5 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003459/0.1939, allocations: 119.1 kB / 413.6 MB, free: 21.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005269/0.1945, allocations: 289.7 kB / 413.9 MB, free: 20.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003748/0.1949, allocations: 203.7 kB / 414 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007719/0.1956, allocations: 1.133 MB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003042/0.196, allocations: 283.6 kB / 415.5 MB, free: 19.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.1963, allocations: 418.4 kB / 415.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003429/0.1966, allocations: 497.9 kB / 416.4 MB, free: 18.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1967, allocations: 72 kB / 416.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.1969, allocations: 72 kB / 416.5 MB, free: 18.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.197, allocations: 195.2 kB / 416.7 MB, free: 18.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003167/0.1973, allocations: 0.4898 MB / 417.2 MB, free: 17.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006456/0.198, allocations: 1.16 MB / 418.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.198, allocations: 0 / 418.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.198, allocations: 0 / 418.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.198, allocations: 0 / 418.3 MB, free: 16.46 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.001996/0.2, allocations: 1.341 MB / 419.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.2001, allocations: 12.88 kB / 419.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.2002, allocations: 103.8 kB / 419.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007096/0.2009, allocations: 0.5832 MB / 420.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000254/0.2012, allocations: 166.9 kB / 420.5 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-05/0.2013, allocations: 56.12 kB / 420.6 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.2024, allocations: 0.8704 MB / 421.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.2025, allocations: 0 / 421.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.77e-05/0.2026, allocations: 28 kB / 421.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2026, allocations: 12 kB / 421.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.2039, allocations: 0.6257 MB / 422.1 MB, free: 12.44 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.00279/0.2067, allocations: 2.065 MB / 424.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.2078, allocations: 0.87 MB / 425.1 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007077/0.2086, allocations: 407.4 kB / 425.5 MB, free: 8.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.995e-05/0.2086, allocations: 16.62 kB / 425.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.2087, allocations: 47.22 kB / 425.5 MB, free: 8.863 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 2.625e-06/0.2087, allocations: 0 / 425.5 MB, free: 8.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.004669/0.2133, allocations: 1.836 MB / 427.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.2135, allocations: 0.8272 MB / 428.2 MB, free: 5.914 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006013/0.2141, allocations: 0.6293 MB / 428.8 MB, free: 5.277 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.432e-05/0.2142, allocations: 45.7 kB / 428.9 MB, free: 5.227 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.2144, allocations: 333 kB / 429.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.2145, allocations: 256.2 kB / 429.4 MB, free: 4.641 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.2147, allocations: 138.7 kB / 429.6 MB, free: 4.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.696e-05/0.2148, allocations: 394.7 kB / 430 MB, free: 4.105 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006129/0.2154, allocations: 289.8 kB / 430.2 MB, free: 3.824 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00075/0.2162, allocations: 0.5663 MB / 430.8 MB, free: 3.156 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.2174, allocations: 0.7051 MB / 431.5 MB, free: 2.426 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.2174, allocations: 0 / 431.5 MB, free: 2.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002373/0.2198, allocations: 1.122 MB / 432.6 MB, free: 1.262 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.2199, allocations: 87.91 kB / 432.7 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.2199, allocations: 0 / 432.7 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000613/0.2205, allocations: 243.2 kB / 433 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/0.2211, allocations: 147.8 kB / 433.1 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007122/0.2282, allocations: 6.367 MB / 439.5 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009775/0.2292, allocations: 107.2 kB / 439.6 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/0.2293, allocations: 23.98 kB / 439.6 MB, free: 9.742 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003406/0.2297, allocations: 227.8 kB / 439.8 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.2298, allocations: 86.97 kB / 439.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.23, allocations: 91.34 kB / 440 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.23, allocations: 4 kB / 440 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.23, allocations: 7.984 kB / 440 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002868/0.2329, allocations: 1.26 MB / 441.3 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/0.2372, allocations: 1.941 MB / 443.2 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.2372, allocations: 11.98 kB / 443.2 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007036/0.2379, allocations: 147.8 kB / 443.4 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005275/0.2384, allocations: 190.5 kB / 443.5 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.637e-05/0.2385, allocations: 19.98 kB / 443.6 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005814/0.2443, allocations: 4.918 MB / 448.5 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.2444, allocations: 0 / 448.5 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02435/0.2687, allocations: 12.3 MB / 460.8 MB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003374/0.2691, allocations: 235.9 kB / 461 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.852e-05/0.2692, allocations: 20 kB / 461 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000685/0.2699, allocations: 59.94 kB / 461.1 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.2701, allocations: 64.56 kB / 461.2 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.129e-05/0.2701, allocations: 19.98 kB / 461.2 MB, free: 2.941 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005717/0.2707, allocations: 455.1 kB / 461.6 MB, free: 2.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2707, allocations: 0 / 461.6 MB, free: 2.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001158/0.2719, allocations: 395.7 kB / 462 MB, free: 2.113 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001677/0.2721, allocations: 135 kB / 462.1 MB, free: 1.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.2743, allocations: 1.363 MB / 463.5 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.2743, allocations: 12.12 kB / 463.5 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.2757, allocations: 0.769 MB / 464.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.2768, allocations: 225.4 kB / 464.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004118/0.2809, allocations: 2.704 MB / 467.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005303/0.2815, allocations: 0.9601 MB / 468.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000549/0.282, allocations: 110.4 kB / 468.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.2822, allocations: 67.44 kB / 468.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2823, allocations: 0 / 468.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of Templates: time 0.02986/0.3121, allocations: 20.82 MB / 489.2 MB, free: 6.953 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches