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.0015/0.0015, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00206/0.00206, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 60.78 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1224, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2639/0.3863, allocations: 90.42 MB / 449.3 MB, free: 364 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03395/0.4203, allocations: 21.34 MB / 470.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00352/0.4239, allocations: 87.44 kB / 470.7 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003213/0.4271, allocations: 0.9395 MB / 471.7 MB, free: 9.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01081/0.438, allocations: 3.744 MB / 475.4 MB, free: 6.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01313/0.4512, allocations: 5.67 MB / 481.1 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009838/0.461, allocations: 7.069 MB / 488.2 MB, free: 9.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003337/0.4644, allocations: 1.845 MB / 490 MB, free: 7.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4199/0.8843, allocations: 74.96 MB / 0.5517 GB, free: 48.87 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07368/0.958, allocations: 31.94 MB / 0.5829 GB, free: 38.31 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001333/0.9594, allocations: 248 kB / 0.5832 GB, free: 38.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02095/0.9804, allocations: 6.119 MB / 0.5891 GB, free: 33.42 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002627/0.983, allocations: 1.099 MB / 0.5902 GB, free: 32.76 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003323/0.9864, allocations: 1.494 MB / 0.5917 GB, free: 32.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01334/0.9998, allocations: 5.534 MB / 0.5971 GB, free: 27.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.9998, allocations: 3.984 kB / 0.5971 GB, free: 27.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.9999, allocations: 4 kB / 0.5971 GB, free: 27.87 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001333/1, allocations: 0 / 0.5971 GB, free: 27.87 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.01562/1.016, allocations: 3.494 MB / 0.6005 GB, free: 24.81 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/1.016, allocations: 12.03 kB / 0.6005 GB, free: 24.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002104/1.018, allocations: 316 kB / 0.6008 GB, free: 24.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005771/1.024, allocations: 1.668 MB / 0.6024 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000286/1.024, allocations: 213.3 kB / 0.6026 GB, free: 23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/1.025, allocations: 203.6 kB / 0.6028 GB, free: 22.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009985/1.035, allocations: 3.292 MB / 0.606 GB, free: 20.44 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/1.035, allocations: 8.594 kB / 0.606 GB, free: 20.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006714/1.036, allocations: 82.7 kB / 0.6061 GB, free: 20.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004679/1.036, allocations: 251.6 kB / 0.6064 GB, free: 20.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008034/1.044, allocations: 3.115 MB / 0.6094 GB, free: 18.13 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.02786/1.072, allocations: 13.77 MB / 0.6229 GB, free: 5.012 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006651/1.079, allocations: 2.22 MB / 0.625 GB, free: 2.809 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00344/1.082, allocations: 1.358 MB / 0.6264 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01559/1.098, allocations: 5.856 MB / 0.6321 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.568e-05/1.098, allocations: 52.56 kB / 0.6321 GB, free: 11.07 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001186/1.099, allocations: 177.9 kB / 0.6323 GB, free: 10.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 7.073e-06/1.099, allocations: 3.938 kB / 0.6323 GB, free: 10.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04355/1.143, allocations: 9.151 MB / 0.6412 GB, free: 1.676 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/1.143, allocations: 73.41 kB / 0.6413 GB, free: 1.59 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005483/1.149, allocations: 1.845 MB / 0.6431 GB, free: 15.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007616/1.149, allocations: 57.7 kB / 0.6432 GB, free: 15.64 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001445/1.151, allocations: 1.064 MB / 0.6442 GB, free: 14.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001543/1.152, allocations: 0.6842 MB / 0.6449 GB, free: 13.89 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002131/1.155, allocations: 452.4 kB / 0.6453 GB, free: 13.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/1.155, allocations: 305.1 kB / 0.6456 GB, free: 13.14 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003837/1.159, allocations: 1.237 MB / 0.6468 GB, free: 11.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004405/1.163, allocations: 1.802 MB / 0.6486 GB, free: 9.863 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005521/1.169, allocations: 3.162 MB / 0.6516 GB, free: 6.531 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.415e-05/1.169, allocations: 4 kB / 0.6516 GB, free: 6.527 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007551/1.176, allocations: 4.29 MB / 0.6558 GB, free: 2.328 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/1.176, allocations: 12 kB / 0.6558 GB, free: 2.316 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.76e-05/1.176, allocations: 16 kB / 0.6559 GB, free: 2.301 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01392/1.19, allocations: 3.641 MB / 0.6594 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/1.192, allocations: 331.8 kB / 0.6597 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007074/1.199, allocations: 3.945 MB / 0.6636 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/1.201, allocations: 99.88 kB / 0.6637 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002895/1.202, allocations: 116 kB / 0.6638 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002929/1.204, allocations: 1.672 MB / 0.6654 GB, free: 8.535 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002361/1.207, allocations: 1.754 MB / 0.6671 GB, free: 6.535 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004286/1.211, allocations: 3.044 MB / 0.6701 GB, free: 3.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.418e-05/1.211, allocations: 8 kB / 0.6701 GB, free: 3.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007122/1.218, allocations: 4.026 MB / 0.6741 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/1.218, allocations: 12 kB / 0.6741 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/1.218, allocations: 16 kB / 0.6741 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009501/1.228, allocations: 2.75 MB / 0.6768 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/1.23, allocations: 377.9 kB / 0.6771 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005773/1.235, allocations: 3.46 MB / 0.6805 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/1.238, allocations: 91.95 kB / 0.6806 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/1.238, allocations: 116 kB / 0.6807 GB, free: 8.609 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.0006316/1.239, allocations: 326.4 kB / 0.681 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004763/1.239, allocations: 225.3 kB / 0.6812 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007933/1.247, allocations: 3.954 MB / 0.6851 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.039e-05/1.247, allocations: 20 kB / 0.6851 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/1.247, allocations: 8 kB / 0.6851 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006173/1.253, allocations: 3.371 MB / 0.6884 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/1.265, allocations: 6.292 MB / 0.6946 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/1.266, allocations: 0 / 0.6946 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/1.267, allocations: 312 kB / 0.6948 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004256/1.271, allocations: 1.166 MB / 0.696 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002402/1.272, allocations: 71.95 kB / 0.6961 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/1.282, allocations: 11.07 MB / 0.7069 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.283, allocations: 0 / 0.7069 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00964/1.292, allocations: 5.18 MB / 0.7119 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/1.294, allocations: 0.6032 MB / 0.7125 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004006/1.294, allocations: 55.92 kB / 0.7126 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/1.296, allocations: 71.94 kB / 0.7126 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003906/1.296, allocations: 169.8 kB / 0.7128 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/1.296, allocations: 79.89 kB / 0.7129 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001803/1.298, allocations: 1.264 MB / 0.7141 GB, free: 5.531 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.298, allocations: 4 kB / 0.7141 GB, free: 5.527 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004504/1.303, allocations: 1.734 MB / 0.7158 GB, free: 3.793 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.002371/1.305, allocations: 1.003 MB / 0.7168 GB, free: 2.863 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.1943/1.499, allocations: 5.111 MB / 0.7218 GB, free: 242 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/1.499, allocations: 0.5 kB / 0.7218 GB, free: 242 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004178/1.504, allocations: 2.242 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.004462/1.508, allocations: 1.065 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.009484/1.518, allocations: 5.65 MB / 0.7305 GB, free: 239.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001701/1.519, allocations: 1.874 MB / 0.7324 GB, free: 238.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003145/1.522, allocations: 0.9557 MB / 0.7333 GB, free: 238.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005853/1.523, allocations: 191.9 kB / 0.7335 GB, free: 238.1 MB / 0.5294 GB Notification: Performance of SimCode: time 8.52e-07/1.523, allocations: 0 / 0.7335 GB, free: 238.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.08887/1.612, allocations: 75.14 MB / 0.8069 GB, free: 175.4 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 cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)