Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.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.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001315, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001252/0.001252, allocations: 183 kB / 18.66 MB, free: 4.414 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.585/1.585, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.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.001227/0.001227, allocations: 52.39 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1229, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3221/0.4451, allocations: 90.12 MB / 465.3 MB, free: 5.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03493/0.48, allocations: 21.31 MB / 486.6 MB, free: 48 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00336/0.4834, allocations: 83.55 kB / 486.6 MB, free: 15.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.4863, allocations: 0.9433 MB / 487.6 MB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.4976, allocations: 3.721 MB / 491.3 MB, free: 11.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01639/0.514, allocations: 5.611 MB / 496.9 MB, free: 5.656 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.525, allocations: 7.042 MB / 0.4921 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003276/0.5283, allocations: 1.846 MB / 0.4939 GB, free: 12.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5221/1.05, allocations: 74.91 MB / 0.5671 GB, free: 55.48 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06727/1.118, allocations: 31.91 MB / 0.5983 GB, free: 45.77 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001745/1.12, allocations: 248.7 kB / 0.5985 GB, free: 45.77 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01647/1.136, allocations: 6.091 MB / 0.6045 GB, free: 44.23 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002891/1.139, allocations: 1.084 MB / 0.6055 GB, free: 43.88 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005694/1.145, allocations: 1.495 MB / 0.607 GB, free: 43.27 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01654/1.161, allocations: 5.524 MB / 0.6124 GB, free: 39.2 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/1.161, allocations: 0 / 0.6124 GB, free: 39.2 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.655e-06/1.161, allocations: 0 / 0.6124 GB, free: 39.2 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001978/1.162, allocations: 0 / 0.6124 GB, free: 39.2 MB / 478.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.01234/1.174, allocations: 3.498 MB / 0.6158 GB, free: 36.13 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.866e-05/1.174, allocations: 12.03 kB / 0.6158 GB, free: 36.12 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/1.176, allocations: 304.6 kB / 0.6161 GB, free: 35.82 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003733/1.179, allocations: 1.682 MB / 0.6177 GB, free: 34.47 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/1.18, allocations: 218.9 kB / 0.6179 GB, free: 34.32 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003443/1.18, allocations: 197.3 kB / 0.6181 GB, free: 34.18 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005156/1.185, allocations: 3.296 MB / 0.6213 GB, free: 31.76 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.055e-05/1.185, allocations: 10.98 kB / 0.6214 GB, free: 31.75 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/1.185, allocations: 81.8 kB / 0.6214 GB, free: 31.73 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002898/1.186, allocations: 249.2 kB / 0.6217 GB, free: 31.52 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004383/1.19, allocations: 3.113 MB / 0.6247 GB, free: 29.45 MB / 478.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.0167/1.207, allocations: 13.78 MB / 0.6382 GB, free: 17.36 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003716/1.211, allocations: 2.222 MB / 0.6403 GB, free: 15.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/1.212, allocations: 1.372 MB / 0.6417 GB, free: 14.28 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007297/1.22, allocations: 5.853 MB / 0.6474 GB, free: 7.949 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/1.22, allocations: 52.56 kB / 0.6474 GB, free: 7.891 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006945/1.22, allocations: 177.8 kB / 0.6476 GB, free: 7.719 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 4.158e-06/1.22, allocations: 3.094 kB / 0.6476 GB, free: 7.719 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.01977/1.24, allocations: 9.152 MB / 0.6565 GB, free: 14.49 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/1.24, allocations: 69.41 kB / 0.6566 GB, free: 14.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003266/1.244, allocations: 1.844 MB / 0.6584 GB, free: 12.53 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002098/1.244, allocations: 61.7 kB / 0.6585 GB, free: 12.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008398/1.245, allocations: 1.065 MB / 0.6595 GB, free: 11.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006611/1.245, allocations: 0.6795 MB / 0.6602 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007945/1.246, allocations: 460.3 kB / 0.6606 GB, free: 10.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/1.246, allocations: 305.1 kB / 0.6609 GB, free: 9.965 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/1.248, allocations: 1.233 MB / 0.6621 GB, free: 8.723 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002559/1.251, allocations: 1.797 MB / 0.6639 GB, free: 6.684 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004581/1.256, allocations: 3.165 MB / 0.667 GB, free: 3.355 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/1.256, allocations: 4 kB / 0.667 GB, free: 3.352 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007439/1.263, allocations: 4.289 MB / 0.6711 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/1.263, allocations: 12.97 kB / 0.6712 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.039e-05/1.263, allocations: 16 kB / 0.6712 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01383/1.277, allocations: 3.645 MB / 0.6747 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/1.278, allocations: 326.3 kB / 0.675 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006868/1.285, allocations: 3.947 MB / 0.6789 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002561/1.288, allocations: 98.91 kB / 0.679 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/1.288, allocations: 115.9 kB / 0.6791 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003128/1.291, allocations: 1.672 MB / 0.6807 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002354/1.294, allocations: 1.754 MB / 0.6825 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004531/1.298, allocations: 3.05 MB / 0.6854 GB, free: 144 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.239e-05/1.298, allocations: 8 kB / 0.6854 GB, free: 136 kB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.0073/1.306, allocations: 4.023 MB / 0.6894 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/1.306, allocations: 12 kB / 0.6894 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-05/1.306, allocations: 22.91 kB / 0.6894 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009724/1.315, allocations: 2.748 MB / 0.6921 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/1.317, allocations: 378.9 kB / 0.6924 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005789/1.323, allocations: 3.469 MB / 0.6958 GB, free: 5.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/1.326, allocations: 97.44 kB / 0.6959 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002783/1.326, allocations: 108 kB / 0.696 GB, free: 5.422 MB / 0.5137 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.0007468/1.327, allocations: 315.5 kB / 0.6963 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006116/1.327, allocations: 229.3 kB / 0.6966 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007928/1.335, allocations: 3.941 MB / 0.7004 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.278e-05/1.335, allocations: 27.98 kB / 0.7004 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/1.335, allocations: 4 kB / 0.7004 GB, free: 0.9336 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005873/1.341, allocations: 3.374 MB / 0.7037 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/1.353, allocations: 6.292 MB / 0.7099 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/1.353, allocations: 4 kB / 0.7099 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/1.354, allocations: 311.8 kB / 0.7102 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003961/1.358, allocations: 1.16 MB / 0.7113 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003034/1.359, allocations: 83.06 kB / 0.7114 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009945/1.369, allocations: 11.06 MB / 0.7222 GB, free: 9.836 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/1.369, allocations: 0 / 0.7222 GB, free: 9.836 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00956/1.378, allocations: 5.185 MB / 0.7272 GB, free: 4.629 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/1.38, allocations: 0.5916 MB / 0.7278 GB, free: 4.016 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003961/1.38, allocations: 52.36 kB / 0.7279 GB, free: 3.965 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/1.381, allocations: 71.94 kB / 0.7279 GB, free: 3.895 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004112/1.382, allocations: 173.7 kB / 0.7281 GB, free: 3.723 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002055/1.382, allocations: 79.95 kB / 0.7282 GB, free: 3.645 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001916/1.384, allocations: 1.268 MB / 0.7294 GB, free: 2.355 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.61e-07/1.384, allocations: 0 / 0.7294 GB, free: 2.355 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006602/1.391, allocations: 1.726 MB / 0.7311 GB, free: 0.6289 MB / 0.545 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.002858/1.394, allocations: 1.009 MB / 0.7321 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01114/1.405, allocations: 5.112 MB / 0.7371 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.405, allocations: 0 / 0.7371 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004779/1.41, allocations: 2.251 MB / 0.7393 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005372/1.415, allocations: 1.046 MB / 0.7403 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/1.426, allocations: 5.64 MB / 0.7458 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001959/1.428, allocations: 1.879 MB / 0.7476 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0036/1.432, allocations: 0.9487 MB / 0.7486 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005875/1.432, allocations: 198.9 kB / 0.7488 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of SimCode: time 8.42e-07/1.432, allocations: 0 / 0.7488 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of Templates: time 0.3631/1.796, allocations: 75.83 MB / 0.8228 GB, free: 224.9 MB / 0.5762 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)