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.006456/0.006456, allocations: 98.14 kB / 15.73 MB, free: 6.062 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.001157/0.001157, allocations: 194.4 kB / 16.68 MB, free: 5.969 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.518/1.518, allocations: 205.1 MB / 222.6 MB, free: 4.5 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.0012/0.0012, allocations: 53.77 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1126, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006065/0.1187, allocations: 5.036 MB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002721/0.1215, allocations: 1.336 MB / 379.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003073/0.1218, allocations: 11.94 kB / 379.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000522/0.1224, allocations: 162.6 kB / 379.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006949/0.1231, allocations: 329.2 kB / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.1235, allocations: 227.6 kB / 380.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001297/0.1248, allocations: 1.18 MB / 381.4 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004428/0.1253, allocations: 314 kB / 381.7 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004975/0.1258, allocations: 454.4 kB / 382.2 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005823/0.1264, allocations: 0.5096 MB / 382.7 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.1265, allocations: 111.9 kB / 382.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.1267, allocations: 108 kB / 382.9 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.1269, allocations: 219.2 kB / 383.1 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005093/0.1274, allocations: 0.5172 MB / 383.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001249/0.1287, allocations: 1.21 MB / 384.8 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1287, allocations: 0 / 384.8 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.1287, allocations: 0 / 384.8 MB, free: 5.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.1287, allocations: 0 / 384.8 MB, free: 5.57 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.002494/0.1312, allocations: 1.367 MB / 386.2 MB, free: 4.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.1313, allocations: 12.03 kB / 386.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001949/0.1315, allocations: 108.3 kB / 386.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1325, allocations: 0.5916 MB / 386.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.1327, allocations: 143 kB / 387.1 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.352e-05/0.1328, allocations: 64.12 kB / 387.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1342, allocations: 0.8431 MB / 388 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1342, allocations: 0 / 388 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-05/0.1343, allocations: 28 kB / 388 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.1343, allocations: 12 kB / 388 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1357, allocations: 0.5985 MB / 388.6 MB, free: 1.578 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.003154/0.1389, allocations: 2.069 MB / 390.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/0.1402, allocations: 0.8429 MB / 391.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007894/0.141, allocations: 398.5 kB / 391.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.647e-05/0.1411, allocations: 16.58 kB / 391.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.962e-05/0.1411, allocations: 47.22 kB / 392 MB, free: 14.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.003e-06/0.1411, allocations: 0 / 392 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004859/0.146, allocations: 1.805 MB / 393.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004374/0.1465, allocations: 0.8234 MB / 394.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008402/0.1473, allocations: 0.6332 MB / 395.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.453e-05/0.1474, allocations: 41.7 kB / 395.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.1477, allocations: 337.4 kB / 395.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002349/0.1479, allocations: 265.7 kB / 395.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/0.1482, allocations: 150.7 kB / 396 MB, free: 9.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1484, allocations: 382.8 kB / 396.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006652/0.149, allocations: 269.8 kB / 396.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009082/0.1499, allocations: 0.5507 MB / 397.2 MB, free: 8.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.1513, allocations: 0.6895 MB / 397.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1513, allocations: 0 / 397.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002644/0.154, allocations: 1.095 MB / 399 MB, free: 6.539 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.915e-05/0.1541, allocations: 89.11 kB / 399.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1541, allocations: 4 kB / 399.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007021/0.1548, allocations: 235.3 kB / 399.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006131/0.1554, allocations: 139.8 kB / 399.4 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008308/0.1637, allocations: 6.94 MB / 406.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.165, allocations: 103.5 kB / 406.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.43e-05/0.1651, allocations: 24 kB / 406.5 MB, free: 14.42 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.0005379/0.1656, allocations: 221.7 kB / 406.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.1659, allocations: 87.48 kB / 406.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002063/0.1661, allocations: 91.33 kB / 406.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.1661, allocations: 8 kB / 406.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.1661, allocations: 0 / 406.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002553/0.1687, allocations: 1.237 MB / 408.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/0.1726, allocations: 1.92 MB / 410.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.1726, allocations: 7.938 kB / 410.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006834/0.1733, allocations: 143.8 kB / 410.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005417/0.1738, allocations: 198.5 kB / 410.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.118e-05/0.1739, allocations: 15.98 kB / 410.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006947/0.1809, allocations: 5.35 MB / 415.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1809, allocations: 0 / 415.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003519/0.1844, allocations: 1.396 MB / 417.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006055/0.1851, allocations: 248.4 kB / 417.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.1852, allocations: 16 kB / 417.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006552/0.1859, allocations: 43.95 kB / 417.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.1861, allocations: 68.56 kB / 417.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.412e-05/0.1861, allocations: 16.19 kB / 417.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006321/0.1868, allocations: 459 kB / 418 MB, free: 2.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1868, allocations: 4 kB / 418 MB, free: 2.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001052/0.1878, allocations: 279.8 kB / 418.3 MB, free: 1.984 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.000207/0.1881, allocations: 127.1 kB / 418.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002427/0.1905, allocations: 1.36 MB / 419.8 MB, free: 408 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.974e-06/0.1905, allocations: 4 kB / 419.8 MB, free: 404 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.1919, allocations: 0.7653 MB / 420.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009604/0.1928, allocations: 242.8 kB / 420.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.1961, allocations: 1.619 MB / 422.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006288/0.1967, allocations: 0.9401 MB / 423.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004987/0.1972, allocations: 102.4 kB / 423.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.1974, allocations: 63.42 kB / 423.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1975, allocations: 0 / 423.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Templates: time 0.0309/0.2284, allocations: 18.59 MB / 442.1 MB, free: 9.949 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)