Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005397/0.005397, allocations: 106.9 kB / 15.74 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 198.1 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 54.7 kB / 326.5 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1172, allocations: 46.61 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.009193/0.1264, allocations: 5.028 MB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004104/0.1306, allocations: 1.352 MB / 379.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006891/0.1313, allocations: 8 kB / 379.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000772/0.1322, allocations: 162.6 kB / 379.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001206/0.1334, allocations: 325.2 kB / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008152/0.1342, allocations: 227.6 kB / 380.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001973/0.1362, allocations: 1.18 MB / 381.4 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006757/0.1369, allocations: 318 kB / 381.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007932/0.1377, allocations: 446.4 kB / 382.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008136/0.1385, allocations: 0.5096 MB / 382.7 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001964/0.1387, allocations: 104 kB / 382.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.139, allocations: 108 kB / 382.9 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002612/0.1393, allocations: 227.2 kB / 383.1 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006892/0.14, allocations: 0.5172 MB / 383.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.1416, allocations: 1.207 MB / 384.8 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.1417, allocations: 3.938 kB / 384.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1417, allocations: 0 / 384.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.1417, allocations: 0 / 384.8 MB, free: 5.566 MB / 318.1 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.003931/0.1456, allocations: 1.333 MB / 386.2 MB, free: 4.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.049e-05/0.1457, allocations: 12.03 kB / 386.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.1461, allocations: 103.8 kB / 386.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.1476, allocations: 0.591 MB / 386.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002894/0.1479, allocations: 143 kB / 387 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.1481, allocations: 60.12 kB / 387.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002159/0.1503, allocations: 0.847 MB / 387.9 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.1503, allocations: 3.906 kB / 387.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.1504, allocations: 28 kB / 388 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.1505, allocations: 12 kB / 388 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.1525, allocations: 0.5946 MB / 388.6 MB, free: 1.613 MB / 318.1 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.004837/0.1573, allocations: 2.061 MB / 390.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.1593, allocations: 0.8507 MB / 391.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.1605, allocations: 390.5 kB / 391.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.004e-05/0.1606, allocations: 12.64 kB / 391.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.267e-05/0.1606, allocations: 55.16 kB / 391.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 3.176e-06/0.1606, allocations: 3.938 kB / 391.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.007313/0.168, allocations: 1.793 MB / 393.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004402/0.1684, allocations: 0.8234 MB / 394.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/0.1696, allocations: 0.637 MB / 395.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.1697, allocations: 45.7 kB / 395.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.1701, allocations: 325.1 kB / 395.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002966/0.1704, allocations: 252.3 kB / 395.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/0.1707, allocations: 150.6 kB / 395.9 MB, free: 9.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.171, allocations: 386.8 kB / 396.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009493/0.172, allocations: 269.8 kB / 396.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.1733, allocations: 0.5507 MB / 397.1 MB, free: 8.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001894/0.1752, allocations: 0.6855 MB / 397.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.1752, allocations: 0 / 397.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003215/0.1784, allocations: 1.094 MB / 398.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.764e-05/0.1785, allocations: 89.11 kB / 399 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1786, allocations: 0 / 399 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009392/0.1795, allocations: 243.2 kB / 399.2 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008828/0.1804, allocations: 135.8 kB / 399.4 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.1917, allocations: 6.935 MB / 406.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.1934, allocations: 103.4 kB / 406.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.894e-05/0.1935, allocations: 20 kB / 406.4 MB, free: 14.49 MB / 350.1 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.0006043/0.1941, allocations: 221.7 kB / 406.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.1944, allocations: 86.97 kB / 406.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.1946, allocations: 95.33 kB / 406.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.1946, allocations: 8 kB / 406.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.1947, allocations: 0 / 406.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00296/0.1976, allocations: 1.233 MB / 408.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003706/0.2013, allocations: 1.92 MB / 410 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.2014, allocations: 8 kB / 410 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006836/0.2021, allocations: 139.8 kB / 410.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005317/0.2026, allocations: 198.5 kB / 410.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.403e-05/0.2027, allocations: 15.98 kB / 410.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006867/0.2095, allocations: 5.349 MB / 415.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.2096, allocations: 0 / 415.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003614/0.2132, allocations: 1.395 MB / 417.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005489/0.2138, allocations: 240 kB / 417.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.2139, allocations: 16 kB / 417.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006576/0.2146, allocations: 47.95 kB / 417.4 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.2148, allocations: 68.5 kB / 417.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.225e-05/0.2148, allocations: 16 kB / 417.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006304/0.2155, allocations: 459.1 kB / 417.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2155, allocations: 0 / 417.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001043/0.2165, allocations: 279.7 kB / 418.2 MB, free: 2.066 MB / 350.1 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.000245/0.2168, allocations: 127.2 kB / 418.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.2193, allocations: 1.356 MB / 419.7 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.2193, allocations: 4.125 kB / 419.7 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.2209, allocations: 0.7612 MB / 420.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.2222, allocations: 250.9 kB / 420.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.2255, allocations: 1.594 MB / 422.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007076/0.2262, allocations: 0.9401 MB / 423.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004658/0.2267, allocations: 102.4 kB / 423.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.2269, allocations: 67.42 kB / 423.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of SimCode: time 3.567e-06/0.2269, allocations: 4 kB / 423.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of Templates: time 0.03105/0.2579, allocations: 18.57 MB / 441.9 MB, free: 10.06 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)