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.001564/0.001564, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001822/0.001822, allocations: 210.7 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 55.91 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2899, allocations: 50.54 MB / 409.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09804/0.3879, allocations: 90.42 MB / 0.4886 GB, free: 6.906 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03453/0.4225, allocations: 21.35 MB / 0.5095 GB, free: 1.504 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003145/0.4257, allocations: 87.44 kB / 0.5095 GB, free: 1.418 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.4291, allocations: 0.9356 MB / 0.5104 GB, free: 488 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01131/0.4405, allocations: 3.74 MB / 0.5141 GB, free: 12.72 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01507/0.4556, allocations: 5.68 MB / 0.5196 GB, free: 7.043 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01072/0.4663, allocations: 7.066 MB / 0.5265 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003956/0.4703, allocations: 1.844 MB / 0.5283 GB, free: 14.09 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4397/0.9101, allocations: 75.02 MB / 0.6016 GB, free: 12.03 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06552/0.9756, allocations: 31.95 MB / 0.6328 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001499/0.9772, allocations: 248 kB / 0.633 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0152/0.9924, allocations: 6.11 MB / 0.639 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.00236/0.9948, allocations: 1.09 MB / 0.6401 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.003854/0.9987, allocations: 1.497 MB / 0.6415 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01551/1.014, allocations: 5.54 MB / 0.647 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.729e-06/1.014, allocations: 0 / 0.647 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.186e-06/1.014, allocations: 0 / 0.647 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001661/1.014, allocations: 0 / 0.647 GB, free: 6.137 MB / 0.4981 GB 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.01566/1.03, allocations: 3.497 MB / 0.6504 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/1.03, allocations: 8.031 kB / 0.6504 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/1.032, allocations: 312.5 kB / 0.6507 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005744/1.038, allocations: 1.672 MB / 0.6523 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004263/1.039, allocations: 228.1 kB / 0.6525 GB, free: 480 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/1.04, allocations: 198.5 kB / 0.6527 GB, free: 292 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/1.051, allocations: 3.302 MB / 0.6559 GB, free: 12.91 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/1.051, allocations: 3.375 kB / 0.6559 GB, free: 12.91 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008046/1.052, allocations: 82.62 kB / 0.656 GB, free: 12.84 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005189/1.053, allocations: 251.8 kB / 0.6563 GB, free: 12.59 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00815/1.061, allocations: 3.11 MB / 0.6593 GB, free: 9.504 MB / 0.5138 GB 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.02431/1.085, allocations: 13.78 MB / 0.6727 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004526/1.09, allocations: 2.224 MB / 0.6749 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002396/1.092, allocations: 1.364 MB / 0.6763 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009645/1.102, allocations: 5.861 MB / 0.682 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/1.102, allocations: 60.5 kB / 0.682 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009162/1.103, allocations: 173.9 kB / 0.6822 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 7.294e-06/1.103, allocations: 0 / 0.6822 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02342/1.126, allocations: 9.15 MB / 0.6911 GB, free: 7.668 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/1.127, allocations: 73.41 kB / 0.6912 GB, free: 7.586 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002908/1.129, allocations: 1.845 MB / 0.693 GB, free: 5.699 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002955/1.13, allocations: 57.7 kB / 0.6931 GB, free: 5.637 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008072/1.131, allocations: 1.062 MB / 0.6941 GB, free: 4.566 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007476/1.131, allocations: 0.678 MB / 0.6948 GB, free: 3.895 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009039/1.132, allocations: 464.3 kB / 0.6952 GB, free: 3.434 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001021/1.132, allocations: 301.1 kB / 0.6955 GB, free: 3.137 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/1.135, allocations: 1.229 MB / 0.6967 GB, free: 1.898 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002577/1.137, allocations: 1.808 MB / 0.6985 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004951/1.142, allocations: 3.158 MB / 0.7015 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/1.142, allocations: 4 kB / 0.7015 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007971/1.15, allocations: 4.294 MB / 0.7057 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/1.15, allocations: 19.92 kB / 0.7058 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/1.15, allocations: 16 kB / 0.7058 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0138/1.164, allocations: 3.636 MB / 0.7093 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/1.165, allocations: 337.6 kB / 0.7096 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007321/1.173, allocations: 3.941 MB / 0.7135 GB, free: 420 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/1.175, allocations: 99.88 kB / 0.7136 GB, free: 320 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003964/1.175, allocations: 116 kB / 0.7137 GB, free: 204 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003264/1.179, allocations: 1.677 MB / 0.7153 GB, free: 14.52 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00256/1.181, allocations: 1.752 MB / 0.717 GB, free: 12.52 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004779/1.186, allocations: 3.05 MB / 0.72 GB, free: 9.305 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.762e-05/1.186, allocations: 4 kB / 0.72 GB, free: 9.301 MB / 0.5763 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.00764/1.194, allocations: 4.015 MB / 0.724 GB, free: 5.379 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/1.194, allocations: 16.06 kB / 0.724 GB, free: 5.363 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/1.194, allocations: 20 kB / 0.724 GB, free: 5.344 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009627/1.204, allocations: 2.75 MB / 0.7267 GB, free: 2.605 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001672/1.205, allocations: 374.7 kB / 0.727 GB, free: 2.262 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006022/1.211, allocations: 3.474 MB / 0.7304 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002135/1.213, allocations: 91.95 kB / 0.7305 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003664/1.214, allocations: 112 kB / 0.7306 GB, free: 14.6 MB / 0.5919 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.0007291/1.215, allocations: 323.6 kB / 0.7309 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007393/1.215, allocations: 229.3 kB / 0.7311 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00888/1.224, allocations: 3.941 MB / 0.735 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-05/1.224, allocations: 24 kB / 0.735 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.458e-05/1.224, allocations: 4 kB / 0.735 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006927/1.231, allocations: 3.372 MB / 0.7383 GB, free: 6.648 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/1.244, allocations: 6.293 MB / 0.7445 GB, free: 332 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/1.244, allocations: 0 / 0.7445 GB, free: 332 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/1.246, allocations: 317.2 kB / 0.7448 GB, free: 32 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004163/1.25, allocations: 1.157 MB / 0.7459 GB, free: 14.86 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003462/1.25, allocations: 75.89 kB / 0.746 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/1.261, allocations: 11.07 MB / 0.7568 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.261, allocations: 0 / 0.7568 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2321/1.493, allocations: 5.178 MB / 0.7618 GB, free: 282.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/1.495, allocations: 0.5964 MB / 0.7624 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004835/1.495, allocations: 53.27 kB / 0.7625 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/1.496, allocations: 79.36 kB / 0.7625 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004331/1.497, allocations: 166.5 kB / 0.7627 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001897/1.497, allocations: 75.97 kB / 0.7628 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001602/1.499, allocations: 1.261 MB / 0.764 GB, free: 281.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.01e-07/1.499, allocations: 0 / 0.764 GB, free: 281.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00385/1.503, allocations: 1.743 MB / 0.7657 GB, free: 281.8 MB / 0.6075 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), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002069/1.505, allocations: 1.008 MB / 0.7667 GB, free: 281.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.009541/1.514, allocations: 5.106 MB / 0.7717 GB, free: 280.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.514, allocations: 3.719 kB / 0.7717 GB, free: 280.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003725/1.518, allocations: 2.251 MB / 0.7739 GB, free: 279 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005472/1.523, allocations: 1.062 MB / 0.7749 GB, free: 278.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009898/1.533, allocations: 5.726 MB / 0.7805 GB, free: 275.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001444/1.535, allocations: 1.854 MB / 0.7823 GB, free: 274 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009849/1.536, allocations: 199.4 kB / 0.7825 GB, free: 273.8 MB / 0.6075 GB Notification: Performance of SimCode: time 9.82e-07/1.536, allocations: 0 / 0.7825 GB, free: 273.8 MB / 0.6075 GB Notification: Performance of Templates: time 0.0817/1.618, allocations: 89.31 MB / 0.8697 GB, free: 184.5 MB / 0.6075 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)