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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001522, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 100.5 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 43.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2807, allocations: 49.45 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08782/0.3686, allocations: 95.45 MB / 494.9 MB, free: 1.625 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.2648/0.6334, allocations: 22.6 MB / 0.5054 GB, free: 1.73 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004151/0.6376, allocations: 115.8 kB / 0.5055 GB, free: 1.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003129/0.6408, allocations: 0.8148 MB / 0.5063 GB, free: 1.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009817/0.6506, allocations: 3.516 MB / 0.5097 GB, free: 1.727 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01237/0.663, allocations: 4.94 MB / 0.5145 GB, free: 1.645 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01233/0.6754, allocations: 10.73 MB / 0.525 GB, free: 1.637 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003644/0.6791, allocations: 1.597 MB / 0.5266 GB, free: 1.328 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1651/0.8442, allocations: 73.45 MB / 0.5983 GB, free: 7.344 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06768/0.9119, allocations: 31.97 MB / 0.6295 GB, free: 7.629 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008619/0.9128, allocations: 132 kB / 0.6297 GB, free: 7.5 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01343/0.9263, allocations: 5.96 MB / 0.6355 GB, free: 1.766 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001826/0.9281, allocations: 0.9814 MB / 0.6364 GB, free: 0.8164 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002663/0.9308, allocations: 1.382 MB / 0.6378 GB, free: 15.46 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008547/0.9394, allocations: 5.365 MB / 0.643 GB, free: 10.36 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.9394, allocations: 6.812 kB / 0.643 GB, free: 10.35 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.9394, allocations: 0 / 0.643 GB, free: 10.35 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.686e-05/0.9395, allocations: 0 / 0.643 GB, free: 10.35 MB / 490.7 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.007775/0.9473, allocations: 3.501 MB / 0.6465 GB, free: 6.852 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.9473, allocations: 10.75 kB / 0.6465 GB, free: 6.844 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008271/0.9482, allocations: 308.6 kB / 0.6468 GB, free: 6.539 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.9508, allocations: 1.577 MB / 0.6483 GB, free: 4.961 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.9509, allocations: 218.9 kB / 0.6485 GB, free: 4.746 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002937/0.9513, allocations: 203.2 kB / 0.6487 GB, free: 4.559 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004534/0.9558, allocations: 3.3 MB / 0.6519 GB, free: 1.168 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/0.9558, allocations: 11.92 kB / 0.6519 GB, free: 1.156 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/0.9561, allocations: 83.02 kB / 0.652 GB, free: 1.086 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002678/0.9563, allocations: 243.8 kB / 0.6523 GB, free: 0.8477 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004566/0.9609, allocations: 3.109 MB / 0.6553 GB, free: 13.74 MB / 0.4948 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.01728/0.9782, allocations: 13.77 MB / 0.6687 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003918/0.9821, allocations: 2.215 MB / 0.6709 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0021/0.9843, allocations: 1.352 MB / 0.6722 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009249/0.9935, allocations: 5.859 MB / 0.6779 GB, free: 5.281 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/0.9936, allocations: 56.55 kB / 0.678 GB, free: 5.219 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001125/0.9948, allocations: 181.9 kB / 0.6782 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 7.464e-06/0.9948, allocations: 3.984 kB / 0.6782 GB, free: 5.035 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.2244/1.219, allocations: 9.14 MB / 0.6871 GB, free: 240.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/1.219, allocations: 79.2 kB / 0.6872 GB, free: 240.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002868/1.222, allocations: 1.848 MB / 0.689 GB, free: 239.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003447/1.223, allocations: 61.64 kB / 0.689 GB, free: 239.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006348/1.223, allocations: 1.054 MB / 0.6901 GB, free: 238.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005133/1.224, allocations: 0.6815 MB / 0.6907 GB, free: 238.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006501/1.224, allocations: 457.5 kB / 0.6912 GB, free: 238 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.884e-05/1.224, allocations: 309 kB / 0.6915 GB, free: 237.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/1.226, allocations: 1.23 MB / 0.6927 GB, free: 237.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/1.228, allocations: 1.807 MB / 0.6944 GB, free: 236.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003698/1.232, allocations: 3.157 MB / 0.6975 GB, free: 234.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/1.232, allocations: 6.062 kB / 0.6975 GB, free: 234.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006366/1.238, allocations: 4.29 MB / 0.7017 GB, free: 232.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/1.238, allocations: 11.53 kB / 0.7017 GB, free: 232.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/1.238, allocations: 21.84 kB / 0.7017 GB, free: 232.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01256/1.251, allocations: 3.631 MB / 0.7053 GB, free: 228.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/1.252, allocations: 331.4 kB / 0.7056 GB, free: 228.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/1.258, allocations: 3.951 MB / 0.7095 GB, free: 224.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/1.26, allocations: 183.2 kB / 0.7096 GB, free: 224.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002226/1.26, allocations: 113.5 kB / 0.7097 GB, free: 224.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002414/1.263, allocations: 1.676 MB / 0.7114 GB, free: 222.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001783/1.265, allocations: 1.757 MB / 0.7131 GB, free: 220.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003346/1.268, allocations: 3.05 MB / 0.7161 GB, free: 217.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.438e-06/1.268, allocations: 4 kB / 0.7161 GB, free: 217.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.005478/1.273, allocations: 4.025 MB / 0.72 GB, free: 213.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/1.274, allocations: 12 kB / 0.72 GB, free: 213.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/1.274, allocations: 16 kB / 0.72 GB, free: 213.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008722/1.282, allocations: 2.749 MB / 0.7227 GB, free: 210.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/1.284, allocations: 375.4 kB / 0.7231 GB, free: 210.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004366/1.288, allocations: 3.463 MB / 0.7265 GB, free: 206.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/1.29, allocations: 187.6 kB / 0.7266 GB, free: 206.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/1.291, allocations: 112 kB / 0.7267 GB, free: 206.5 MB / 0.5105 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.0005535/1.291, allocations: 323.6 kB / 0.7271 GB, free: 206.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004019/1.292, allocations: 233.1 kB / 0.7273 GB, free: 206 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00627/1.298, allocations: 3.95 MB / 0.7311 GB, free: 202 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/1.298, allocations: 24 kB / 0.7312 GB, free: 202 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.234e-05/1.298, allocations: 0 / 0.7312 GB, free: 202 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004528/1.303, allocations: 3.374 MB / 0.7345 GB, free: 198.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008832/1.311, allocations: 6.297 MB / 0.7406 GB, free: 192.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/1.311, allocations: 7.875 kB / 0.7406 GB, free: 192.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/1.313, allocations: 315.6 kB / 0.7409 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003705/1.316, allocations: 1.2 MB / 0.7421 GB, free: 190.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001722/1.317, allocations: 83.77 kB / 0.7422 GB, free: 190.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006785/1.323, allocations: 10.41 MB / 0.7523 GB, free: 179.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/1.323, allocations: 3.984 kB / 0.7523 GB, free: 179.5 MB / 0.5105 GB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.393/1.717, allocations: 63.37 MB / 0.8142 GB, free: 115.1 MB / 0.5105 GB Error: post-optimization module symbolicJacobian (simulation) failed.