Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001171/0.001171, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001431/0.001431, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009051/0.0009051, allocations: 47.94 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2614, allocations: 49.42 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.0854/0.3469, allocations: 90.1 MB / 490.8 MB, free: 14.49 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03116/0.3781, allocations: 21.33 MB / 0.5001 GB, free: 9.098 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003149/0.3813, allocations: 83.5 kB / 0.5002 GB, free: 9.016 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002714/0.384, allocations: 0.9356 MB / 0.5011 GB, free: 8.074 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01085/0.395, allocations: 3.783 MB / 0.5048 GB, free: 4.273 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01247/0.4075, allocations: 5.648 MB / 0.5103 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008464/0.4159, allocations: 7.065 MB / 0.5172 GB, free: 7.547 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002485/0.4184, allocations: 1.841 MB / 0.519 GB, free: 5.68 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4085/0.827, allocations: 74.96 MB / 0.5922 GB, free: 7.469 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0668/0.8939, allocations: 31.92 MB / 0.6234 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009308/0.8948, allocations: 248 kB / 0.6236 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01401/0.9088, allocations: 6.098 MB / 0.6296 GB, free: 8.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001967/0.9109, allocations: 1.088 MB / 0.6307 GB, free: 8.258 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002667/0.9135, allocations: 1.498 MB / 0.6321 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.9243, allocations: 5.525 MB / 0.6375 GB, free: 3.32 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.9244, allocations: 4 kB / 0.6375 GB, free: 3.316 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.9244, allocations: 0 / 0.6375 GB, free: 3.316 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.507e-05/0.9245, allocations: 0 / 0.6375 GB, free: 3.316 MB / 494.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.00835/0.9328, allocations: 3.492 MB / 0.6409 GB, free: 216 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.9329, allocations: 12.03 kB / 0.6409 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009779/0.9339, allocations: 308.7 kB / 0.6412 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002656/0.9365, allocations: 1.671 MB / 0.6429 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/0.9367, allocations: 215.3 kB / 0.6431 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003215/0.9371, allocations: 205.3 kB / 0.6433 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004862/0.9419, allocations: 3.298 MB / 0.6465 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.443e-05/0.942, allocations: 3.094 kB / 0.6465 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/0.9422, allocations: 88.34 kB / 0.6466 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002935/0.9425, allocations: 247.8 kB / 0.6468 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005182/0.9477, allocations: 3.113 MB / 0.6499 GB, free: 7.547 MB / 0.4981 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.01937/0.9671, allocations: 13.78 MB / 0.6633 GB, free: 9.074 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004025/0.9712, allocations: 2.228 MB / 0.6655 GB, free: 6.855 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002172/0.9734, allocations: 1.383 MB / 0.6668 GB, free: 5.477 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008848/0.9822, allocations: 5.852 MB / 0.6726 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/0.9823, allocations: 52.56 kB / 0.6726 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000813/0.9831, allocations: 173.9 kB / 0.6728 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.771e-06/0.9832, allocations: 0 / 0.6728 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02242/1.006, allocations: 9.148 MB / 0.6817 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/1.006, allocations: 73.41 kB / 0.6818 GB, free: 5.625 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/1.009, allocations: 1.837 MB / 0.6836 GB, free: 3.746 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002237/1.009, allocations: 61.7 kB / 0.6836 GB, free: 3.68 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008402/1.01, allocations: 1.059 MB / 0.6847 GB, free: 2.613 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006205/1.011, allocations: 0.6808 MB / 0.6853 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007487/1.011, allocations: 464.3 kB / 0.6858 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.64e-05/1.011, allocations: 301.1 kB / 0.6861 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001937/1.013, allocations: 1.229 MB / 0.6873 GB, free: 15.94 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/1.016, allocations: 1.812 MB / 0.689 GB, free: 13.89 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004375/1.02, allocations: 3.153 MB / 0.6921 GB, free: 10.57 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.669e-06/1.02, allocations: 8 kB / 0.6921 GB, free: 10.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007296/1.027, allocations: 4.289 MB / 0.6963 GB, free: 6.367 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/1.027, allocations: 18.5 kB / 0.6963 GB, free: 6.352 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/1.028, allocations: 16 kB / 0.6963 GB, free: 6.336 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0136/1.041, allocations: 3.638 MB / 0.6999 GB, free: 2.707 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/1.042, allocations: 334 kB / 0.7002 GB, free: 2.406 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006079/1.048, allocations: 3.946 MB / 0.7041 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/1.05, allocations: 103.9 kB / 0.7042 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002271/1.051, allocations: 116 kB / 0.7043 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002801/1.053, allocations: 1.672 MB / 0.7059 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002306/1.056, allocations: 1.756 MB / 0.7076 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004228/1.06, allocations: 3.048 MB / 0.7106 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.021e-05/1.06, allocations: 8 kB / 0.7106 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006605/1.067, allocations: 4.025 MB / 0.7145 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/1.067, allocations: 12 kB / 0.7145 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/1.067, allocations: 16 kB / 0.7146 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009113/1.076, allocations: 2.746 MB / 0.7172 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/1.077, allocations: 381.1 kB / 0.7176 GB, free: 308 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005037/1.082, allocations: 3.469 MB / 0.721 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/1.084, allocations: 95.95 kB / 0.7211 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002385/1.084, allocations: 112 kB / 0.7212 GB, free: 12.63 MB / 0.5762 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.0006394/1.085, allocations: 318.6 kB / 0.7215 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005365/1.085, allocations: 229.1 kB / 0.7217 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007239/1.093, allocations: 3.934 MB / 0.7256 GB, free: 8.176 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-05/1.093, allocations: 28 kB / 0.7256 GB, free: 8.148 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-05/1.093, allocations: 0 / 0.7256 GB, free: 8.148 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00573/1.099, allocations: 3.375 MB / 0.7289 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/1.109, allocations: 6.289 MB / 0.735 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/1.109, allocations: 0 / 0.735 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/1.111, allocations: 320.7 kB / 0.7353 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004032/1.115, allocations: 1.165 MB / 0.7365 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/1.115, allocations: 71.95 kB / 0.7365 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009757/1.125, allocations: 11.07 MB / 0.7473 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.125, allocations: 3.984 kB / 0.7473 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2298/1.355, allocations: 5.175 MB / 0.7524 GB, free: 274 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.356, allocations: 0.5912 MB / 0.753 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002975/1.356, allocations: 59.14 kB / 0.753 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/1.357, allocations: 82.02 kB / 0.7531 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003332/1.358, allocations: 158.2 kB / 0.7533 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/1.358, allocations: 84.25 kB / 0.7533 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001364/1.359, allocations: 1.255 MB / 0.7546 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.7e-07/1.359, allocations: 0 / 0.7546 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003395/1.363, allocations: 1.733 MB / 0.7563 GB, free: 273 MB / 0.5919 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.00183/1.365, allocations: 1.008 MB / 0.7572 GB, free: 272.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009045/1.374, allocations: 5.111 MB / 0.7622 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/1.374, allocations: 0 / 0.7622 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003243/1.377, allocations: 2.254 MB / 0.7644 GB, free: 270.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/1.38, allocations: 1.051 MB / 0.7655 GB, free: 269.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007017/1.387, allocations: 5.658 MB / 0.771 GB, free: 264.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009813/1.388, allocations: 1.872 MB / 0.7728 GB, free: 262.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002184/1.391, allocations: 0.9579 MB / 0.7737 GB, free: 261.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004831/1.391, allocations: 191.4 kB / 0.7739 GB, free: 261.7 MB / 0.5919 GB Notification: Performance of SimCode: time 4.81e-07/1.391, allocations: 4 kB / 0.7739 GB, free: 261.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.09208/1.483, allocations: 75.91 MB / 0.8481 GB, free: 186.3 MB / 0.5919 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)