Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.000764/0.000764, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.008174/0.008174, allocations: 173.4 kB / 16.27 MB, free: 6.613 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.542/1.542, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.000503/0.0005029, allocations: 12 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2769, allocations: 47.58 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.00526/0.2822, allocations: 4.645 MB / 331.7 MB, free: 13.69 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.2847, allocations: 1.272 MB / 332.9 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003157/0.285, allocations: 15.22 kB / 332.9 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003832/0.2854, allocations: 124.9 kB / 333.1 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006104/0.2861, allocations: 291.4 kB / 333.4 MB, free: 12.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000381/0.2864, allocations: 195.4 kB / 333.5 MB, free: 12.1 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001106/0.2876, allocations: 1.115 MB / 334.7 MB, free: 11.44 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004045/0.288, allocations: 283.5 kB / 334.9 MB, free: 11.27 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004846/0.2885, allocations: 413.2 kB / 335.3 MB, free: 11.02 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005002/0.289, allocations: 470 kB / 335.8 MB, free: 10.56 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.2891, allocations: 67.94 kB / 335.9 MB, free: 10.49 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.2892, allocations: 68 kB / 335.9 MB, free: 10.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.2894, allocations: 183.2 kB / 336.1 MB, free: 10.25 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004303/0.2898, allocations: 0.5071 MB / 336.6 MB, free: 9.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009638/0.2908, allocations: 1.129 MB / 337.7 MB, free: 8.598 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2908, allocations: 0 / 337.7 MB, free: 8.598 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2908, allocations: 0 / 337.7 MB, free: 8.598 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.2908, allocations: 0 / 337.7 MB, free: 8.598 MB / 270.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.002203/0.293, allocations: 1.197 MB / 338.9 MB, free: 7.328 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.2931, allocations: 8.031 kB / 339 MB, free: 7.32 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.2933, allocations: 107.8 kB / 339.1 MB, free: 7.215 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000874/0.2942, allocations: 0.5948 MB / 339.7 MB, free: 6.582 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003296/0.2945, allocations: 174.9 kB / 339.8 MB, free: 6.395 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.2946, allocations: 60.12 kB / 339.9 MB, free: 6.336 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.2962, allocations: 0.8822 MB / 340.8 MB, free: 5.352 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.2962, allocations: 4 kB / 340.8 MB, free: 5.348 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.15e-05/0.2963, allocations: 24 kB / 340.8 MB, free: 5.324 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/0.2963, allocations: 15.98 kB / 340.8 MB, free: 5.309 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.298, allocations: 0.661 MB / 341.5 MB, free: 4.645 MB / 270.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.003868/0.3019, allocations: 2.081 MB / 343.5 MB, free: 2.457 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.3034, allocations: 0.8936 MB / 344.4 MB, free: 1.504 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008693/0.3043, allocations: 426.4 kB / 344.9 MB, free: 1.086 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.288e-05/0.3044, allocations: 12.64 kB / 344.9 MB, free: 1.074 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.3044, allocations: 55.14 kB / 344.9 MB, free: 1.012 MB / 270.1 MB Notification: Performance of pre-optimization done (n=73): time 2.816e-06/0.3044, allocations: 4 kB / 344.9 MB, free: 1.008 MB / 270.1 MB Notification: Performance of matching and sorting (n=73): time 0.005542/0.31, allocations: 1.988 MB / 346.9 MB, free: 14.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005361/0.3105, allocations: 0.8273 MB / 347.7 MB, free: 13.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008906/0.3114, allocations: 0.6293 MB / 348.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.232e-05/0.3115, allocations: 45.7 kB / 348.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/0.3118, allocations: 333 kB / 348.7 MB, free: 12.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.3121, allocations: 260.2 kB / 349 MB, free: 12.62 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.265e-05/0.3122, allocations: 57.69 kB / 349.1 MB, free: 12.56 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.3124, allocations: 382.8 kB / 349.4 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007321/0.3131, allocations: 309.8 kB / 349.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009892/0.3141, allocations: 0.578 MB / 350.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.3157, allocations: 0.7519 MB / 351.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3157, allocations: 0 / 351.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002824/0.3185, allocations: 1.2 MB / 352.3 MB, free: 9.184 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.073e-05/0.3186, allocations: 89.09 kB / 352.3 MB, free: 9.078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.3186, allocations: 0 / 352.3 MB, free: 9.078 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007441/0.3194, allocations: 255.2 kB / 352.6 MB, free: 8.816 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006391/0.32, allocations: 147.8 kB / 352.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00764/0.3277, allocations: 6.503 MB / 359.2 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.3288, allocations: 131.3 kB / 359.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.3288, allocations: 20 kB / 359.4 MB, free: 1.48 MB / 286.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.0004445/0.3293, allocations: 221.7 kB / 359.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.3295, allocations: 83.06 kB / 359.7 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.3296, allocations: 95.33 kB / 359.8 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.3297, allocations: 8 kB / 359.8 MB, free: 1.066 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.3297, allocations: 3.938 kB / 359.8 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002738/0.3324, allocations: 1.339 MB / 361.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003965/0.3364, allocations: 2.027 MB / 363.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3364, allocations: 4 kB / 363.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007413/0.3372, allocations: 155.8 kB / 363.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005546/0.3377, allocations: 214.5 kB / 363.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.3378, allocations: 16 kB / 363.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006344/0.3441, allocations: 5.063 MB / 368.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3442, allocations: 8.094 kB / 368.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003614/0.3478, allocations: 1.527 MB / 370.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004269/0.3482, allocations: 239.8 kB / 370.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.3484, allocations: 23.98 kB / 370.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006976/0.3491, allocations: 59.95 kB / 370.5 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/0.3493, allocations: 68.5 kB / 370.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.043e-05/0.3494, allocations: 20.11 kB / 370.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006581/0.35, allocations: 451.1 kB / 371 MB, free: 5.246 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3501, allocations: 0 / 371 MB, free: 5.246 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008961/0.351, allocations: 287.6 kB / 371.3 MB, free: 4.965 MB / 302.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.0001782/0.3511, allocations: 131.3 kB / 371.4 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.3536, allocations: 1.403 MB / 372.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.3536, allocations: 8.125 kB / 372.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.3551, allocations: 0.8197 MB / 373.6 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.3562, allocations: 210.8 kB / 373.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.3592, allocations: 1.988 MB / 375.8 MB, free: 248 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000527/0.3598, allocations: 0.944 MB / 376.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004269/0.3602, allocations: 102.4 kB / 376.9 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.3604, allocations: 67.44 kB / 376.9 MB, free: 15.1 MB / 318.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3604, allocations: 0 / 376.9 MB, free: 15.1 MB / 318.1 MB Notification: Performance of Templates: time 0.02938/0.3898, allocations: 16.91 MB / 393.8 MB, free: 14.16 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)