Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009874/0.0009874, allocations: 113.5 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009496/0.0009497, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2045, allocations: 50.45 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.0812/0.2857, allocations: 95.57 MB / 0.4908 GB, free: 11.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2291/0.5149, allocations: 22.61 MB / 0.5129 GB, free: 1.668 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003017/0.5179, allocations: 114.6 kB / 0.513 GB, free: 1.668 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002124/0.5201, allocations: 0.8137 MB / 0.5138 GB, free: 1.668 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008241/0.5283, allocations: 3.527 MB / 0.5172 GB, free: 1.641 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01122/0.5396, allocations: 4.921 MB / 0.5221 GB, free: 1.551 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01017/0.5498, allocations: 10.77 MB / 0.5326 GB, free: 1.305 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003112/0.5529, allocations: 1.594 MB / 0.5341 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1655/0.7184, allocations: 73.51 MB / 0.6059 GB, free: 3.363 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07104/0.7895, allocations: 32 MB / 0.6372 GB, free: 3.43 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001164/0.7907, allocations: 132 kB / 0.6373 GB, free: 3.301 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01764/0.8084, allocations: 5.972 MB / 0.6431 GB, free: 13.43 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003051/0.8115, allocations: 0.9832 MB / 0.6441 GB, free: 12.48 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005718/0.8172, allocations: 1.38 MB / 0.6454 GB, free: 11.11 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01532/0.8326, allocations: 5.376 MB / 0.6507 GB, free: 5.953 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.8327, allocations: 0 / 0.6507 GB, free: 5.953 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.8327, allocations: 0 / 0.6507 GB, free: 5.953 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001556/0.8328, allocations: 3.562 kB / 0.6507 GB, free: 5.953 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.01402/0.8469, allocations: 3.501 MB / 0.6541 GB, free: 2.438 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.847, allocations: 12.03 kB / 0.6541 GB, free: 2.426 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/0.8488, allocations: 312.5 kB / 0.6544 GB, free: 2.117 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003829/0.8527, allocations: 1.567 MB / 0.6559 GB, free: 0.5312 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001905/0.8529, allocations: 231.3 kB / 0.6562 GB, free: 308 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004069/0.8533, allocations: 199.9 kB / 0.6564 GB, free: 120 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007441/0.8608, allocations: 3.302 MB / 0.6596 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.161e-05/0.8609, allocations: 4 kB / 0.6596 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003568/0.8613, allocations: 82.47 kB / 0.6597 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004442/0.8617, allocations: 255.7 kB / 0.6599 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008289/0.87, allocations: 3.107 MB / 0.6629 GB, free: 9.289 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.02212/0.8922, allocations: 13.77 MB / 0.6764 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004075/0.8963, allocations: 2.22 MB / 0.6786 GB, free: 8.512 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002135/0.8985, allocations: 1.357 MB / 0.6799 GB, free: 7.152 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008808/0.9073, allocations: 5.85 MB / 0.6856 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.9073, allocations: 52.56 kB / 0.6856 GB, free: 0.7695 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006827/0.908, allocations: 192.5 kB / 0.6858 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 3.527e-06/0.908, allocations: 0 / 0.6858 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.2034/1.111, allocations: 9.139 MB / 0.6947 GB, free: 234.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/1.112, allocations: 73.22 kB / 0.6948 GB, free: 234.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003415/1.115, allocations: 1.845 MB / 0.6966 GB, free: 233.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002688/1.115, allocations: 57.23 kB / 0.6967 GB, free: 233.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008791/1.116, allocations: 1.06 MB / 0.6977 GB, free: 232.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006819/1.117, allocations: 0.6809 MB / 0.6984 GB, free: 232.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/1.118, allocations: 459.1 kB / 0.6988 GB, free: 232.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 4.89e-05/1.118, allocations: 306.3 kB / 0.6991 GB, free: 231.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/1.121, allocations: 1.227 MB / 0.7003 GB, free: 231.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/1.124, allocations: 1.805 MB / 0.7021 GB, free: 229.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006534/1.131, allocations: 3.16 MB / 0.7052 GB, free: 227.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-05/1.131, allocations: 7.844 kB / 0.7052 GB, free: 227.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0104/1.141, allocations: 4.29 MB / 0.7093 GB, free: 223.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.807e-05/1.141, allocations: 16 kB / 0.7094 GB, free: 223.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/1.141, allocations: 19.94 kB / 0.7094 GB, free: 223.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01906/1.16, allocations: 3.634 MB / 0.7129 GB, free: 220.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002002/1.162, allocations: 327.5 kB / 0.7132 GB, free: 219.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008469/1.171, allocations: 3.952 MB / 0.7171 GB, free: 215.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/1.174, allocations: 182.7 kB / 0.7173 GB, free: 215.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003376/1.175, allocations: 112 kB / 0.7174 GB, free: 215.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003679/1.178, allocations: 1.677 MB / 0.719 GB, free: 213.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002388/1.181, allocations: 1.752 MB / 0.7207 GB, free: 211.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004687/1.186, allocations: 3.054 MB / 0.7237 GB, free: 208.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.503e-05/1.186, allocations: 8 kB / 0.7237 GB, free: 208.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007783/1.193, allocations: 4.026 MB / 0.7277 GB, free: 204.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/1.194, allocations: 12 kB / 0.7277 GB, free: 204.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/1.194, allocations: 16 kB / 0.7277 GB, free: 204.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01118/1.205, allocations: 2.746 MB / 0.7304 GB, free: 201.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/1.207, allocations: 380.1 kB / 0.7307 GB, free: 201.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006218/1.213, allocations: 3.467 MB / 0.7341 GB, free: 198 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003189/1.216, allocations: 186.8 kB / 0.7343 GB, free: 197.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004472/1.217, allocations: 114.5 kB / 0.7344 GB, free: 197.7 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.0008829/1.218, allocations: 311.7 kB / 0.7347 GB, free: 197.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008351/1.218, allocations: 233.1 kB / 0.7349 GB, free: 197.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009552/1.228, allocations: 3.961 MB / 0.7388 GB, free: 193.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.108e-05/1.228, allocations: 23.98 kB / 0.7388 GB, free: 193.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.128e-05/1.228, allocations: 10.72 kB / 0.7388 GB, free: 193.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006856/1.235, allocations: 3.37 MB / 0.7421 GB, free: 189.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/1.248, allocations: 6.294 MB / 0.7483 GB, free: 183.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/1.248, allocations: 0 / 0.7483 GB, free: 183.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/1.25, allocations: 323.5 kB / 0.7486 GB, free: 183.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004824/1.255, allocations: 1.202 MB / 0.7497 GB, free: 181.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003145/1.255, allocations: 75.94 kB / 0.7498 GB, free: 181.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008693/1.264, allocations: 10.42 MB / 0.76 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.264, allocations: 3.906 kB / 0.76 GB, free: 170.7 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.451/1.715, allocations: 63.51 MB / 0.822 GB, free: 106.1 MB / 0.5105 GB Error: post-optimization module symbolicJacobian (simulation) failed.