Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 59.98 kB / 306.2 MB, free: 1.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09535, allocations: 50.54 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2899/0.3853, allocations: 95.78 MB / 452.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03511/0.4204, allocations: 22.65 MB / 475.2 MB, free: 5.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003798/0.4242, allocations: 115.1 kB / 475.3 MB, free: 5.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002456/0.4267, allocations: 0.8238 MB / 476.1 MB, free: 4.535 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008652/0.4354, allocations: 3.528 MB / 479.7 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01108/0.4465, allocations: 4.946 MB / 484.6 MB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.457, allocations: 10.74 MB / 495.4 MB, free: 1.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00275/0.4598, allocations: 1.605 MB / 497 MB, free: 15.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4259/0.8858, allocations: 73.48 MB / 0.5571 GB, free: 39.39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06212/0.9479, allocations: 31.99 MB / 0.5883 GB, free: 28.2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008703/0.9488, allocations: 135.5 kB / 0.5884 GB, free: 28.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01203/0.9609, allocations: 5.996 MB / 0.5943 GB, free: 23.38 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.9622, allocations: 0.9807 MB / 0.5953 GB, free: 22.72 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001946/0.9642, allocations: 1.377 MB / 0.5966 GB, free: 21.99 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006515/0.9707, allocations: 5.381 MB / 0.6019 GB, free: 17.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.9707, allocations: 4 kB / 0.6019 GB, free: 17.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.9707, allocations: 0 / 0.6019 GB, free: 17.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.442e-05/0.9708, allocations: 0 / 0.6019 GB, free: 17.93 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.007853/0.9787, allocations: 3.503 MB / 0.6053 GB, free: 14.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.9787, allocations: 12.03 kB / 0.6053 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008227/0.9795, allocations: 308.5 kB / 0.6056 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002077/0.9816, allocations: 1.58 MB / 0.6071 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.9818, allocations: 221 kB / 0.6073 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002767/0.982, allocations: 189.8 kB / 0.6075 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004171/0.9862, allocations: 3.299 MB / 0.6107 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.417e-05/0.9863, allocations: 13 kB / 0.6108 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/0.9865, allocations: 86.56 kB / 0.6108 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002417/0.9868, allocations: 250.5 kB / 0.6111 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004101/0.9909, allocations: 3.106 MB / 0.6141 GB, free: 8.281 MB / 446.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.01722/1.008, allocations: 13.77 MB / 0.6276 GB, free: 12.22 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004725/1.013, allocations: 2.23 MB / 0.6297 GB, free: 10.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002365/1.015, allocations: 1.35 MB / 0.631 GB, free: 9.176 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009896/1.025, allocations: 5.86 MB / 0.6368 GB, free: 2.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/1.025, allocations: 56.03 kB / 0.6368 GB, free: 2.781 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009659/1.026, allocations: 178 kB / 0.637 GB, free: 2.605 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 6.402e-06/1.026, allocations: 0.75 kB / 0.637 GB, free: 2.605 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02401/1.05, allocations: 9.138 MB / 0.6459 GB, free: 9.406 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/1.05, allocations: 73.41 kB / 0.646 GB, free: 9.32 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/1.054, allocations: 1.849 MB / 0.6478 GB, free: 7.43 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000194/1.054, allocations: 61.7 kB / 0.6479 GB, free: 7.363 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008565/1.055, allocations: 1.058 MB / 0.6489 GB, free: 6.297 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000639/1.055, allocations: 0.6767 MB / 0.6495 GB, free: 5.625 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008342/1.056, allocations: 460.4 kB / 0.65 GB, free: 5.168 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/1.056, allocations: 304.5 kB / 0.6503 GB, free: 4.871 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002118/1.058, allocations: 1.235 MB / 0.6515 GB, free: 3.629 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002632/1.061, allocations: 1.802 MB / 0.6532 GB, free: 1.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004846/1.066, allocations: 3.159 MB / 0.6563 GB, free: 14.26 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/1.066, allocations: 8 kB / 0.6563 GB, free: 14.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007782/1.074, allocations: 4.293 MB / 0.6605 GB, free: 10.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/1.074, allocations: 12 kB / 0.6605 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.458e-05/1.074, allocations: 23.08 kB / 0.6606 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01436/1.088, allocations: 3.631 MB / 0.6641 GB, free: 6.406 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/1.09, allocations: 326.4 kB / 0.6644 GB, free: 6.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007334/1.097, allocations: 3.949 MB / 0.6683 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002563/1.099, allocations: 191.6 kB / 0.6685 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000408/1.1, allocations: 116 kB / 0.6686 GB, free: 1.859 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003383/1.103, allocations: 1.676 MB / 0.6702 GB, free: 180 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002682/1.106, allocations: 1.75 MB / 0.6719 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004877/1.111, allocations: 3.052 MB / 0.6749 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.581e-05/1.111, allocations: 4 kB / 0.6749 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007505/1.118, allocations: 4.027 MB / 0.6788 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/1.118, allocations: 12 kB / 0.6788 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-05/1.119, allocations: 20.98 kB / 0.6789 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009976/1.128, allocations: 2.745 MB / 0.6815 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/1.13, allocations: 367.8 kB / 0.6819 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005904/1.136, allocations: 3.477 MB / 0.6853 GB, free: 468 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002441/1.139, allocations: 175.8 kB / 0.6855 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003933/1.139, allocations: 116 kB / 0.6856 GB, free: 176 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0008209/1.14, allocations: 320.6 kB / 0.6859 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007233/1.141, allocations: 229.2 kB / 0.6861 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008859/1.15, allocations: 3.954 MB / 0.69 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/1.15, allocations: 28 kB / 0.69 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.169e-05/1.15, allocations: 4 kB / 0.69 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006133/1.156, allocations: 3.372 MB / 0.6933 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/1.167, allocations: 6.3 MB / 0.6994 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/1.168, allocations: 0 / 0.6994 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/1.169, allocations: 323.2 kB / 0.6997 GB, free: 1.605 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004407/1.173, allocations: 1.201 MB / 0.7009 GB, free: 396 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002814/1.174, allocations: 71.95 kB / 0.701 GB, free: 324 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009968/1.184, allocations: 10.43 MB / 0.7112 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/1.184, allocations: 0 / 0.7112 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009688/1.193, allocations: 5.182 MB / 0.7162 GB, free: 4 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.1765/1.37, allocations: 0.5885 MB / 0.7168 GB, free: 241.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004164/1.37, allocations: 53.23 kB / 0.7169 GB, free: 241.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001651/1.372, allocations: 143.3 kB / 0.717 GB, free: 241.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004445/1.373, allocations: 167.6 kB / 0.7171 GB, free: 241.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002153/1.373, allocations: 77.86 kB / 0.7172 GB, free: 241.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001949/1.375, allocations: 1.262 MB / 0.7185 GB, free: 241.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.5e-07/1.375, allocations: 0 / 0.7185 GB, free: 241.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004724/1.379, allocations: 1.747 MB / 0.7202 GB, free: 241.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00228/1.382, allocations: 1.011 MB / 0.7211 GB, free: 241.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01094/1.393, allocations: 5.074 MB / 0.7261 GB, free: 240.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.393, allocations: 1.281 kB / 0.7261 GB, free: 240.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004204/1.397, allocations: 2.241 MB / 0.7283 GB, free: 239.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004972/1.402, allocations: 1.009 MB / 0.7293 GB, free: 239.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009797/1.412, allocations: 6.639 MB / 0.7358 GB, free: 236.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001416/1.413, allocations: 1.87 MB / 0.7376 GB, free: 235.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003339/1.416, allocations: 0.9656 MB / 0.7385 GB, free: 235.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/1.417, allocations: 191.3 kB / 0.7387 GB, free: 235.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.573e-06/1.417, allocations: 0 / 0.7387 GB, free: 235.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.09166/1.509, allocations: 72.15 MB / 0.8092 GB, free: 169.8 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)