Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001262/0.001262, allocations: 115.3 kB / 17.06 MB, free: 6 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.001131/0.001131, allocations: 200 kB / 18 MB, free: 5.078 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.406/1.406, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.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.001387/0.001387, allocations: 55.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1132, allocations: 46.61 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.2634/0.3767, allocations: 5.021 MB / 379.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003563/0.3803, allocations: 1.351 MB / 380.8 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005253/0.3809, allocations: 8.25 kB / 380.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005613/0.3815, allocations: 163.3 kB / 381 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001033/0.3826, allocations: 321.4 kB / 381.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009023/0.3835, allocations: 232.4 kB / 381.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002298/0.3858, allocations: 1.178 MB / 382.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008122/0.3866, allocations: 311.5 kB / 383 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009821/0.3876, allocations: 458.6 kB / 383.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009376/0.3886, allocations: 0.5058 MB / 384 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000246/0.3889, allocations: 102.8 kB / 384.1 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002776/0.3892, allocations: 110.2 kB / 384.2 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002718/0.3894, allocations: 228.2 kB / 384.4 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007602/0.3902, allocations: 0.5175 MB / 384.9 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.3923, allocations: 1.203 MB / 386.1 MB, free: 7.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.3923, allocations: 0 / 386.1 MB, free: 7.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3923, allocations: 0 / 386.1 MB, free: 7.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.3923, allocations: 0 / 386.1 MB, free: 7.719 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.00334/0.3957, allocations: 1.336 MB / 387.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.062e-05/0.3958, allocations: 10.12 kB / 387.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000319/0.3961, allocations: 106.1 kB / 387.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.3978, allocations: 0.5898 MB / 388.2 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002564/0.398, allocations: 141.8 kB / 388.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.3982, allocations: 62.81 kB / 388.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/0.4003, allocations: 0.8418 MB / 389.2 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/0.4004, allocations: 11.89 kB / 389.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.731e-05/0.4005, allocations: 27.16 kB / 389.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.4005, allocations: 13.16 kB / 389.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00219/0.4027, allocations: 0.6013 MB / 389.9 MB, free: 5.457 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.005114/0.4078, allocations: 2.055 MB / 391.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/0.4099, allocations: 0.8516 MB / 392.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.4111, allocations: 400.8 kB / 393.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.41e-05/0.4112, allocations: 13.17 kB / 393.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.177e-05/0.4113, allocations: 55.03 kB / 393.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 3.377e-06/0.4113, allocations: 0 / 393.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.007544/0.4189, allocations: 1.794 MB / 395 MB, free: 2.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002205/0.4191, allocations: 0.8224 MB / 395.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.4202, allocations: 0.6355 MB / 396.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.94e-05/0.4203, allocations: 43.95 kB / 396.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002914/0.4206, allocations: 330.5 kB / 396.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002646/0.4209, allocations: 257.7 kB / 397.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.4212, allocations: 143.2 kB / 397.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.4214, allocations: 393.9 kB / 397.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008201/0.4222, allocations: 268.4 kB / 397.9 MB, free: 420 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.4234, allocations: 0.5526 MB / 398.5 MB, free: 0 / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.4255, allocations: 0.6826 MB / 399.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.4255, allocations: 2.312 kB / 399.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003793/0.4293, allocations: 1.092 MB / 400.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.392e-05/0.4294, allocations: 85.7 kB / 400.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.4294, allocations: 2.062 kB / 400.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000957/0.4304, allocations: 236.5 kB / 400.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008433/0.4313, allocations: 140.5 kB / 400.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009989/0.4413, allocations: 6.925 MB / 407.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4426, allocations: 102.6 kB / 407.7 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-05/0.4427, allocations: 21.31 kB / 407.7 MB, free: 8.441 MB / 334.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.0004683/0.4432, allocations: 228.6 kB / 407.9 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/0.4434, allocations: 88.5 kB / 408 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.4436, allocations: 93.8 kB / 408.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.4437, allocations: 6.938 kB / 408.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.665e-05/0.4437, allocations: 0 / 408.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003135/0.4468, allocations: 1.241 MB / 409.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.4519, allocations: 1.917 MB / 411.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.452, allocations: 5.453 kB / 411.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008921/0.4529, allocations: 144.2 kB / 411.4 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007318/0.4536, allocations: 195.5 kB / 411.6 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.823e-05/0.4537, allocations: 15.28 kB / 411.6 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008834/0.4625, allocations: 5.346 MB / 417 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4626, allocations: 1.594 kB / 417 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004525/0.4671, allocations: 1.397 MB / 418.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000713/0.4678, allocations: 235.9 kB / 418.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003054/0.4682, allocations: 27.77 kB / 418.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.4693, allocations: 44.17 kB / 418.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002689/0.4695, allocations: 65.3 kB / 418.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.7e-05/0.4696, allocations: 20.89 kB / 418.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008996/0.4705, allocations: 454 kB / 419.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4706, allocations: 0 / 419.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001589/0.4721, allocations: 281.6 kB / 419.5 MB, free: 15.32 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.0002475/0.4724, allocations: 129.2 kB / 419.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003341/0.4758, allocations: 1.35 MB / 421 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/0.4758, allocations: 1.406 kB / 421 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.4777, allocations: 0.7749 MB / 421.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.4794, allocations: 250.8 kB / 422 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.4836, allocations: 1.584 MB / 423.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007684/0.4844, allocations: 0.9401 MB / 424.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006305/0.485, allocations: 102.4 kB / 424.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002429/0.4853, allocations: 67.42 kB / 424.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4853, allocations: 4 kB / 424.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Templates: time 0.03245/0.5177, allocations: 19.16 MB / 443.8 MB, free: 7.43 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)