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.0007801/0.0007802, allocations: 98.33 kB / 17.31 MB, free: 6.391 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.0008414/0.0008414, allocations: 178.4 kB / 18.21 MB, free: 5.551 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.134/1.134, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002221, allocations: 9.594 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07612/0.07635, allocations: 50.41 MB / 352.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.221/0.2974, allocations: 93.74 MB / 446.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02827/0.3257, allocations: 22.31 MB / 468.5 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002463/0.3282, allocations: 107.1 kB / 468.6 MB, free: 460 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.3304, allocations: 0.82 MB / 469.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007656/0.3381, allocations: 3.516 MB / 473 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009553/0.3477, allocations: 4.935 MB / 477.9 MB, free: 7.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009646/0.3573, allocations: 10.72 MB / 488.6 MB, free: 12.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002472/0.3598, allocations: 1.58 MB / 490.2 MB, free: 10.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2931/0.6529, allocations: 73.39 MB / 0.5504 GB, free: 53.45 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04431/0.6973, allocations: 31.95 MB / 0.5816 GB, free: 43.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000596/0.6979, allocations: 125.4 kB / 0.5817 GB, free: 43.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009158/0.7071, allocations: 5.957 MB / 0.5875 GB, free: 41.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009461/0.708, allocations: 0.9658 MB / 0.5885 GB, free: 41.35 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.7094, allocations: 1.394 MB / 0.5898 GB, free: 41.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00335/0.7128, allocations: 3.94 MB / 0.5937 GB, free: 38.12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.7128, allocations: 0 / 0.5937 GB, free: 38.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.7128, allocations: 3.984 kB / 0.5937 GB, free: 38.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.387e-05/0.7128, allocations: 0 / 0.5937 GB, free: 38.12 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.005575/0.7184, allocations: 2.993 MB / 0.5966 GB, free: 35.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.7184, allocations: 14.22 kB / 0.5966 GB, free: 35.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006802/0.7191, allocations: 308.6 kB / 0.5969 GB, free: 35.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001767/0.7209, allocations: 1.579 MB / 0.5984 GB, free: 33.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.721, allocations: 218 kB / 0.5987 GB, free: 33.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.7213, allocations: 199.9 kB / 0.5988 GB, free: 33.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003587/0.7249, allocations: 3.303 MB / 0.6021 GB, free: 31.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.823e-05/0.7249, allocations: 8.172 kB / 0.6021 GB, free: 31.13 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/0.7251, allocations: 86.56 kB / 0.6022 GB, free: 31.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002161/0.7254, allocations: 248.2 kB / 0.6024 GB, free: 30.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00364/0.729, allocations: 3.115 MB / 0.6054 GB, free: 28.82 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.01221/0.7412, allocations: 13.81 MB / 0.6189 GB, free: 16.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003035/0.7443, allocations: 2.225 MB / 0.6211 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001582/0.7459, allocations: 1.363 MB / 0.6224 GB, free: 14.42 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005782/0.7517, allocations: 5.87 MB / 0.6282 GB, free: 9.191 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.7517, allocations: 52.44 kB / 0.6282 GB, free: 9.145 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004659/0.7522, allocations: 185.5 kB / 0.6284 GB, free: 8.988 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 2.705e-06/0.7522, allocations: 0 / 0.6284 GB, free: 8.988 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.01673/0.7689, allocations: 9.225 MB / 0.6374 GB, free: 15.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.769, allocations: 73.41 kB / 0.6375 GB, free: 15.78 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/0.771, allocations: 1.841 MB / 0.6393 GB, free: 13.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.7712, allocations: 65.7 kB / 0.6393 GB, free: 13.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006615/0.7718, allocations: 1.059 MB / 0.6404 GB, free: 12.76 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000466/0.7723, allocations: 0.6799 MB / 0.641 GB, free: 12.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002635/0.7726, allocations: 194.4 kB / 0.6412 GB, free: 11.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.187e-05/0.7727, allocations: 305.1 kB / 0.6415 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.7744, allocations: 1.225 MB / 0.6427 GB, free: 10.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/0.7765, allocations: 1.803 MB / 0.6445 GB, free: 8.324 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003932/0.7804, allocations: 3.171 MB / 0.6476 GB, free: 4.988 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.7805, allocations: 11.28 kB / 0.6476 GB, free: 4.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006182/0.7867, allocations: 4.303 MB / 0.6518 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003279/0.787, allocations: 0.6032 MB / 0.6524 GB, free: 15.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/0.787, allocations: 16 kB / 0.6524 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/0.7997, allocations: 3.649 MB / 0.6559 GB, free: 12.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.8008, allocations: 339.8 kB / 0.6563 GB, free: 11.97 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005573/0.8064, allocations: 3.948 MB / 0.6601 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.8084, allocations: 187.8 kB / 0.6603 GB, free: 7.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/0.8086, allocations: 116 kB / 0.6604 GB, free: 7.727 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.8086, allocations: 7.984 kB / 0.6604 GB, free: 7.719 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005478/0.8141, allocations: 3.812 MB / 0.6641 GB, free: 4.016 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.8142, allocations: 24.22 kB / 0.6642 GB, free: 3.992 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008984/0.8231, allocations: 2.86 MB / 0.667 GB, free: 1.148 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.8245, allocations: 376.5 kB / 0.6673 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/0.8293, allocations: 3.487 MB / 0.6707 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.8312, allocations: 191.5 kB / 0.6709 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.8314, allocations: 108 kB / 0.671 GB, free: 13.03 MB / 494.1 MB 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.001129/0.8325, allocations: 0.6971 MB / 0.6717 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004331/0.833, allocations: 233.1 kB / 0.6719 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006948/0.8399, allocations: 3.974 MB / 0.6758 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/0.8399, allocations: 20 kB / 0.6758 GB, free: 8.133 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.84, allocations: 4 kB / 0.6758 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005136/0.8451, allocations: 3.39 MB / 0.6791 GB, free: 4.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009774/0.8549, allocations: 6.318 MB / 0.6853 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.8549, allocations: 2.078 kB / 0.6853 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/0.8562, allocations: 324.8 kB / 0.6856 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00418/0.8604, allocations: 1.226 MB / 0.6868 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/0.8606, allocations: 75.95 kB / 0.6869 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008719/0.8693, allocations: 10.46 MB / 0.6971 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.8693, allocations: 0 / 0.6971 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007892/0.8772, allocations: 5.212 MB / 0.7022 GB, free: 12.32 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.8784, allocations: 0.6031 MB / 0.7028 GB, free: 11.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004024/0.8788, allocations: 55.98 kB / 0.7028 GB, free: 11.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.8803, allocations: 141.8 kB / 0.703 GB, free: 11.5 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003361/0.8806, allocations: 169.1 kB / 0.7031 GB, free: 11.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001721/0.8808, allocations: 79.95 kB / 0.7032 GB, free: 11.27 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.001585/0.8824, allocations: 1.264 MB / 0.7044 GB, free: 9.98 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8824, allocations: 0 / 0.7044 GB, free: 9.98 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.003799/0.8862, allocations: 1.741 MB / 0.7061 GB, free: 8.238 MB / 0.5138 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), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002041/0.8882, allocations: 0.9982 MB / 0.7071 GB, free: 7.32 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00909/0.8973, allocations: 5.043 MB / 0.712 GB, free: 2.383 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.8974, allocations: 0.875 kB / 0.712 GB, free: 2.383 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003535/0.9009, allocations: 2.253 MB / 0.7142 GB, free: 108 kB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1383/1.039, allocations: 0.983 MB / 0.7152 GB, free: 230 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/1.049, allocations: 6.942 MB / 0.722 GB, free: 227.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/1.051, allocations: 1.85 MB / 0.7238 GB, free: 226.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007275/1.052, allocations: 205.4 kB / 0.724 GB, free: 226.8 MB / 0.5138 GB Notification: Performance of SimCode: time 6.81e-07/1.052, allocations: 0 / 0.724 GB, free: 226.8 MB / 0.5138 GB Notification: Performance of Templates: time 0.06815/1.12, allocations: 88.46 MB / 0.8104 GB, free: 153.8 MB / 0.5138 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)