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.001308/0.001308, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001511/0.001511, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.451/1.451, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001127/0.001127, allocations: 47.92 kB / 327.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09622/0.09735, allocations: 46.61 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.2195/0.3169, allocations: 5.025 MB / 379.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002638/0.3196, allocations: 1.35 MB / 380.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000323/0.3199, allocations: 7.844 kB / 380.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004179/0.3204, allocations: 161.2 kB / 381 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005825/0.321, allocations: 321.5 kB / 381.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.3215, allocations: 234.6 kB / 381.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.323, allocations: 1.172 MB / 382.7 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005679/0.3235, allocations: 312.2 kB / 383 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006233/0.3242, allocations: 460.8 kB / 383.5 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005954/0.3248, allocations: 0.5021 MB / 384 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.3249, allocations: 103.8 kB / 384.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.3251, allocations: 105.4 kB / 384.2 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.3253, allocations: 232.5 kB / 384.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004825/0.3258, allocations: 0.5156 MB / 384.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.3271, allocations: 1.204 MB / 386.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3271, allocations: 0 / 386.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3271, allocations: 0 / 386.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.3271, allocations: 1.062 kB / 386.1 MB, free: 7.727 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.002242/0.3294, allocations: 1.37 MB / 387.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.3294, allocations: 9.984 kB / 387.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.3296, allocations: 111.5 kB / 387.6 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009067/0.3305, allocations: 0.5927 MB / 388.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.3307, allocations: 145.7 kB / 388.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-05/0.3308, allocations: 59.03 kB / 388.4 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3321, allocations: 0.8415 MB / 389.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.3322, allocations: 5.719 kB / 389.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.224e-05/0.3322, allocations: 29.06 kB / 389.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.3322, allocations: 17.89 kB / 389.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.3336, allocations: 0.6015 MB / 389.9 MB, free: 5.422 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.003507/0.3371, allocations: 2.06 MB / 392 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.3385, allocations: 0.848 MB / 392.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008141/0.3393, allocations: 399.3 kB / 393.2 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.921e-05/0.3394, allocations: 14.3 kB / 393.2 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.3395, allocations: 54.66 kB / 393.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 2.985e-06/0.3395, allocations: 0 / 393.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.005139/0.3446, allocations: 1.801 MB / 395.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003275/0.3449, allocations: 0.8224 MB / 395.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009741/0.3459, allocations: 0.6302 MB / 396.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.346, allocations: 45.8 kB / 396.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/0.3463, allocations: 341.2 kB / 396.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/0.3465, allocations: 267 kB / 397.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.3468, allocations: 143.9 kB / 397.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3469, allocations: 385.8 kB / 397.7 MB, free: 460 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006399/0.3476, allocations: 274.8 kB / 398 MB, free: 364 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.3485, allocations: 0.5501 MB / 398.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.3499, allocations: 0.6835 MB / 399.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.35, allocations: 1.25 kB / 399.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002645/0.3526, allocations: 1.096 MB / 400.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.648e-05/0.3527, allocations: 84.38 kB / 400.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.3527, allocations: 2.109 kB / 400.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007681/0.3535, allocations: 235.6 kB / 400.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006244/0.3541, allocations: 151.3 kB / 400.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008485/0.3626, allocations: 6.925 MB / 407.7 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.364, allocations: 102.9 kB / 407.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.479e-05/0.364, allocations: 24.16 kB / 407.8 MB, free: 8.367 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.0005131/0.3646, allocations: 233.5 kB / 408 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.3647, allocations: 88.58 kB / 408.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.3649, allocations: 89.03 kB / 408.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.3649, allocations: 7.875 kB / 408.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/0.365, allocations: 0 / 408.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002647/0.3676, allocations: 1.239 MB / 409.5 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004238/0.3719, allocations: 1.927 MB / 411.4 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3719, allocations: 0 / 411.4 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007356/0.3726, allocations: 145 kB / 411.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005818/0.3732, allocations: 191.9 kB / 411.7 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.304e-05/0.3733, allocations: 24.64 kB / 411.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006999/0.3803, allocations: 5.345 MB / 417.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3803, allocations: 1.031 kB / 417.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003569/0.3839, allocations: 1.394 MB / 418.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005874/0.3845, allocations: 249.4 kB / 418.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.3846, allocations: 23.53 kB / 418.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006466/0.3853, allocations: 47.58 kB / 418.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.3855, allocations: 67.25 kB / 418.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.272e-05/0.3856, allocations: 15.78 kB / 418.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006632/0.3862, allocations: 458.2 kB / 419.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3862, allocations: 0 / 419.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001116/0.3874, allocations: 280.2 kB / 419.6 MB, free: 15.22 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.000191/0.3876, allocations: 133.1 kB / 419.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002429/0.39, allocations: 1.355 MB / 421.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.39, allocations: 1.312 kB / 421.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001426/0.3915, allocations: 0.7646 MB / 421.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.3927, allocations: 247.5 kB / 422.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003029/0.3957, allocations: 1.625 MB / 423.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005272/0.3962, allocations: 0.9362 MB / 424.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004986/0.3967, allocations: 106.4 kB / 424.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.3969, allocations: 63.44 kB / 424.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3969, allocations: 0 / 424.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Templates: time 0.03264/0.4296, allocations: 18.58 MB / 443.4 MB, free: 7.895 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)