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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.2/1.2, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008507/0.0008507, allocations: 94.28 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008077/0.0008079, allocations: 39.94 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2045, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07668/0.2812, allocations: 95.49 MB / 469.3 MB, free: 1.75 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03036/0.3116, allocations: 22.6 MB / 491.9 MB, free: 11.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.3149, allocations: 115.1 kB / 492 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00239/0.3173, allocations: 0.816 MB / 492.8 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008937/0.3264, allocations: 3.516 MB / 496.3 MB, free: 6.637 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01172/0.3381, allocations: 4.9 MB / 0.4895 GB, free: 1.738 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1988/0.5369, allocations: 10.72 MB / 0.5 GB, free: 6.176 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003011/0.54, allocations: 1.587 MB / 0.5015 GB, free: 6.113 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1482/0.6882, allocations: 73.42 MB / 0.5732 GB, free: 9.418 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06711/0.7553, allocations: 31.96 MB / 0.6044 GB, free: 13.66 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001258/0.7566, allocations: 135.1 kB / 0.6046 GB, free: 13.53 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.014/0.7707, allocations: 5.951 MB / 0.6104 GB, free: 7.852 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002075/0.7728, allocations: 0.98 MB / 0.6113 GB, free: 6.902 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003304/0.7761, allocations: 1.383 MB / 0.6127 GB, free: 5.543 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009508/0.7856, allocations: 5.369 MB / 0.6179 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.7857, allocations: 3.938 kB / 0.6179 GB, free: 0.5586 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.7857, allocations: 0 / 0.6179 GB, free: 0.5586 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001252/0.7858, allocations: 0 / 0.6179 GB, free: 0.5586 MB / 458.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.009242/0.795, allocations: 3.494 MB / 0.6213 GB, free: 13.07 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.7951, allocations: 12.03 kB / 0.6213 GB, free: 13.06 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/0.7964, allocations: 312.5 kB / 0.6216 GB, free: 12.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003333/0.7998, allocations: 1.569 MB / 0.6232 GB, free: 11.21 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.8, allocations: 224 kB / 0.6234 GB, free: 11 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000496/0.8005, allocations: 193.4 kB / 0.6236 GB, free: 10.82 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005658/0.8062, allocations: 3.298 MB / 0.6268 GB, free: 7.438 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.714e-05/0.8062, allocations: 7.281 kB / 0.6268 GB, free: 7.434 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/0.8065, allocations: 86.48 kB / 0.6269 GB, free: 7.359 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002788/0.8068, allocations: 251 kB / 0.6271 GB, free: 7.117 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005704/0.8125, allocations: 3.112 MB / 0.6302 GB, free: 4.027 MB / 474.7 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.01922/0.8318, allocations: 13.76 MB / 0.6436 GB, free: 5.566 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003956/0.8358, allocations: 2.229 MB / 0.6458 GB, free: 3.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001973/0.8378, allocations: 1.354 MB / 0.6471 GB, free: 1.988 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008642/0.8464, allocations: 5.858 MB / 0.6528 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.8465, allocations: 56.56 kB / 0.6529 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009209/0.8474, allocations: 181.9 kB / 0.653 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=171): time 8.035e-06/0.8475, allocations: 4 kB / 0.653 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=197): time 0.02097/0.8684, allocations: 9.147 MB / 0.662 GB, free: 2.199 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.8685, allocations: 69.41 kB / 0.662 GB, free: 2.117 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/0.8709, allocations: 1.845 MB / 0.6638 GB, free: 236 kB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.8711, allocations: 61.7 kB / 0.6639 GB, free: 168 kB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006813/0.8718, allocations: 1.058 MB / 0.6649 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005026/0.8723, allocations: 0.6812 MB / 0.6656 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007449/0.873, allocations: 460.3 kB / 0.666 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.413e-05/0.8731, allocations: 303.4 kB / 0.6663 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001843/0.875, allocations: 1.233 MB / 0.6675 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002179/0.8771, allocations: 1.805 MB / 0.6693 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00407/0.8812, allocations: 3.16 MB / 0.6724 GB, free: 7.055 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.8813, allocations: 4 kB / 0.6724 GB, free: 7.051 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006537/0.8878, allocations: 4.295 MB / 0.6766 GB, free: 2.848 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.8878, allocations: 12.16 kB / 0.6766 GB, free: 2.836 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/0.8879, allocations: 20 kB / 0.6766 GB, free: 2.816 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1612/1.049, allocations: 3.632 MB / 0.6802 GB, free: 250 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/1.051, allocations: 331.8 kB / 0.6805 GB, free: 250 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006396/1.057, allocations: 3.954 MB / 0.6843 GB, free: 248.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002321/1.059, allocations: 176.4 kB / 0.6845 GB, free: 248.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/1.06, allocations: 116.3 kB / 0.6846 GB, free: 248.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002633/1.062, allocations: 1.675 MB / 0.6863 GB, free: 248.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001914/1.064, allocations: 1.752 MB / 0.688 GB, free: 247.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003624/1.068, allocations: 3.05 MB / 0.6909 GB, free: 245.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.588e-06/1.068, allocations: 3.969 kB / 0.6909 GB, free: 245.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.005483/1.073, allocations: 4.027 MB / 0.6949 GB, free: 244 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/1.073, allocations: 12.94 kB / 0.6949 GB, free: 244 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/1.073, allocations: 23.22 kB / 0.6949 GB, free: 244 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008413/1.082, allocations: 2.742 MB / 0.6976 GB, free: 243.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/1.083, allocations: 382.3 kB / 0.698 GB, free: 243.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/1.088, allocations: 3.467 MB / 0.7013 GB, free: 241.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/1.09, allocations: 178 kB / 0.7015 GB, free: 241.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/1.09, allocations: 113.4 kB / 0.7016 GB, free: 241.1 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.000586/1.09, allocations: 312.3 kB / 0.7019 GB, free: 240.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003555/1.091, allocations: 231 kB / 0.7021 GB, free: 240.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006085/1.097, allocations: 3.964 MB / 0.706 GB, free: 237.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/1.097, allocations: 20 kB / 0.706 GB, free: 237.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/1.097, allocations: 4 kB / 0.706 GB, free: 237.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004299/1.101, allocations: 3.377 MB / 0.7093 GB, free: 233.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008749/1.11, allocations: 6.301 MB / 0.7155 GB, free: 227.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/1.11, allocations: 0 / 0.7155 GB, free: 227.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/1.111, allocations: 319.6 kB / 0.7158 GB, free: 227.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003525/1.115, allocations: 1.2 MB / 0.717 GB, free: 226.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/1.115, allocations: 71.95 kB / 0.717 GB, free: 226 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006156/1.121, allocations: 10.42 MB / 0.7272 GB, free: 214.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/1.121, allocations: 0 / 0.7272 GB, free: 214.9 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.3814/1.503, allocations: 63.37 MB / 0.7891 GB, free: 150.6 MB / 0.5105 GB Error: post-optimization module symbolicJacobian (simulation) failed.