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.001072/0.001072, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001148, allocations: 60.45 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1037, allocations: 50.54 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2472/0.351, allocations: 90.42 MB / 449.3 MB, free: 272 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03244/0.3835, allocations: 21.34 MB / 470.7 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002794/0.3863, allocations: 87.44 kB / 470.7 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002653/0.389, allocations: 0.9395 MB / 471.7 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01003/0.3991, allocations: 3.747 MB / 475.4 MB, free: 6.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01335/0.4124, allocations: 5.674 MB / 481.1 MB, free: 420 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009836/0.4223, allocations: 7.065 MB / 488.2 MB, free: 9.328 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003425/0.4258, allocations: 1.853 MB / 490 MB, free: 7.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4051/0.8309, allocations: 74.96 MB / 0.5517 GB, free: 48.57 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06326/0.8942, allocations: 31.94 MB / 0.5829 GB, free: 38.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001208/0.8954, allocations: 248 kB / 0.5832 GB, free: 37.8 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01306/0.9085, allocations: 6.125 MB / 0.5891 GB, free: 33.15 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001651/0.9102, allocations: 1.087 MB / 0.5902 GB, free: 32.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002083/0.9123, allocations: 1.506 MB / 0.5917 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007538/0.9198, allocations: 5.537 MB / 0.5971 GB, free: 27.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.9198, allocations: 0 / 0.5971 GB, free: 27.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.9199, allocations: 0 / 0.5971 GB, free: 27.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.454e-05/0.9199, allocations: 4 kB / 0.5971 GB, free: 27.6 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.007599/0.9275, allocations: 3.498 MB / 0.6005 GB, free: 24.53 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.9276, allocations: 8.031 kB / 0.6005 GB, free: 24.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009397/0.9285, allocations: 310.9 kB / 0.6008 GB, free: 24.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003048/0.9316, allocations: 1.667 MB / 0.6024 GB, free: 22.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.9317, allocations: 220.5 kB / 0.6026 GB, free: 22.72 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.932, allocations: 202.3 kB / 0.6028 GB, free: 22.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004256/0.9363, allocations: 3.292 MB / 0.606 GB, free: 20.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.113e-05/0.9364, allocations: 8.75 kB / 0.6061 GB, free: 20.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002131/0.9366, allocations: 81.5 kB / 0.6061 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002295/0.9368, allocations: 255.5 kB / 0.6064 GB, free: 19.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004231/0.9411, allocations: 3.107 MB / 0.6094 GB, free: 17.86 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.01484/0.9559, allocations: 13.78 MB / 0.6229 GB, free: 4.684 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003389/0.9593, allocations: 2.22 MB / 0.625 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.961, allocations: 1.356 MB / 0.6264 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008538/0.9695, allocations: 5.857 MB / 0.6321 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.9696, allocations: 56.56 kB / 0.6321 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006607/0.9703, allocations: 177.9 kB / 0.6323 GB, free: 10.56 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 3.065e-06/0.9703, allocations: 0 / 0.6323 GB, free: 10.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02263/0.9929, allocations: 9.142 MB / 0.6412 GB, free: 1.352 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.993, allocations: 69.41 kB / 0.6413 GB, free: 1.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003293/0.9963, allocations: 1.845 MB / 0.6431 GB, free: 15.38 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003413/0.9967, allocations: 61.7 kB / 0.6432 GB, free: 15.32 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008846/0.9976, allocations: 1.059 MB / 0.6442 GB, free: 14.25 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008121/0.9984, allocations: 0.6872 MB / 0.6449 GB, free: 13.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.9995, allocations: 459.9 kB / 0.6453 GB, free: 13.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.152e-05/0.9996, allocations: 301.1 kB / 0.6456 GB, free: 12.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002228/1.002, allocations: 1.233 MB / 0.6468 GB, free: 11.58 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002661/1.004, allocations: 1.812 MB / 0.6486 GB, free: 9.531 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004854/1.009, allocations: 3.155 MB / 0.6516 GB, free: 6.207 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/1.009, allocations: 4.5 kB / 0.6516 GB, free: 6.203 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008309/1.018, allocations: 4.293 MB / 0.6558 GB, free: 2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/1.018, allocations: 12 kB / 0.6558 GB, free: 1.988 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.583e-05/1.018, allocations: 25.62 kB / 0.6559 GB, free: 1.969 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01437/1.032, allocations: 3.627 MB / 0.6594 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/1.034, allocations: 332.3 kB / 0.6597 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007895/1.042, allocations: 3.949 MB / 0.6636 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/1.044, allocations: 99.88 kB / 0.6637 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004335/1.044, allocations: 116 kB / 0.6638 GB, free: 9.891 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003528/1.048, allocations: 1.668 MB / 0.6654 GB, free: 8.215 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002605/1.051, allocations: 1.759 MB / 0.6671 GB, free: 6.211 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00473/1.055, allocations: 3.046 MB / 0.6701 GB, free: 2.996 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.076e-05/1.055, allocations: 8 kB / 0.6701 GB, free: 2.988 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007448/1.063, allocations: 4.029 MB / 0.6741 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/1.063, allocations: 12 kB / 0.6741 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/1.063, allocations: 16 kB / 0.6741 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009958/1.073, allocations: 2.749 MB / 0.6768 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/1.075, allocations: 381 kB / 0.6771 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006393/1.081, allocations: 3.464 MB / 0.6805 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002593/1.084, allocations: 87.95 kB / 0.6806 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004443/1.084, allocations: 116 kB / 0.6807 GB, free: 8.281 MB / 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.0009739/1.085, allocations: 325.8 kB / 0.681 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009075/1.086, allocations: 225.3 kB / 0.6812 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008758/1.095, allocations: 3.942 MB / 0.6851 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.143e-05/1.095, allocations: 24 kB / 0.6851 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/1.095, allocations: 0 / 0.6851 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007079/1.102, allocations: 3.377 MB / 0.6884 GB, free: 348 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01959/1.122, allocations: 6.293 MB / 0.6945 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/1.122, allocations: 3.938 kB / 0.6946 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002555/1.124, allocations: 320.6 kB / 0.6949 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007111/1.132, allocations: 1.16 MB / 0.696 GB, free: 8.535 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007005/1.132, allocations: 71.95 kB / 0.6961 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01906/1.151, allocations: 11.07 MB / 0.7069 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/1.151, allocations: 0 / 0.7069 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01865/1.17, allocations: 5.178 MB / 0.7119 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002898/1.173, allocations: 0.5993 MB / 0.7125 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/1.175, allocations: 59.98 kB / 0.7126 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003295/1.178, allocations: 63.95 kB / 0.7126 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000889/1.179, allocations: 169.8 kB / 0.7128 GB, free: 6.574 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005134/1.179, allocations: 79.89 kB / 0.7129 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004475/1.184, allocations: 1.264 MB / 0.7141 GB, free: 5.211 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.61e-07/1.184, allocations: 0 / 0.7141 GB, free: 5.211 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009869/1.194, allocations: 1.738 MB / 0.7158 GB, free: 3.473 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), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00478/1.199, allocations: 1.011 MB / 0.7168 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2011/1.4, allocations: 5.111 MB / 0.7218 GB, free: 242 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.4, allocations: 0 / 0.7218 GB, free: 242 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004131/1.404, allocations: 2.241 MB / 0.724 GB, free: 241.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004541/1.408, allocations: 1.061 MB / 0.725 GB, free: 241.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009695/1.418, allocations: 5.654 MB / 0.7305 GB, free: 239.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001779/1.42, allocations: 1.871 MB / 0.7323 GB, free: 238.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003322/1.423, allocations: 0.9589 MB / 0.7333 GB, free: 238.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006267/1.424, allocations: 195.2 kB / 0.7335 GB, free: 238.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/1.424, allocations: 0 / 0.7335 GB, free: 238.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.09174/1.516, allocations: 75.14 MB / 0.8068 GB, free: 175.1 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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)