Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.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.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, 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.206/1.206, allocations: 205.1 MB / 223.7 MB, free: 8.477 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.000899/0.0008992, allocations: 96.75 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007198/0.0007198, allocations: 35.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2324, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.07114/0.3035, allocations: 96.1 MB / 469.9 MB, free: 1.113 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.2202/0.5238, allocations: 35.71 MB / 0.4938 GB, free: 1.145 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002343/0.5263, allocations: 75.34 kB / 0.4938 GB, free: 1.145 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002439/0.5287, allocations: 1.184 MB / 0.495 GB, free: 1.145 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008505/0.5372, allocations: 3.944 MB / 0.4989 GB, free: 1.141 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01717/0.5544, allocations: 7.605 MB / 0.5063 GB, free: 1.016 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009209/0.5636, allocations: 8.851 MB / 0.5149 GB, free: 1.004 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002333/0.566, allocations: 1.786 MB / 0.5167 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01001/0.576, allocations: 5.49 MB / 0.522 GB, free: 15.44 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003349/0.5794, allocations: 2.194 MB / 0.5242 GB, free: 14.82 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003706/0.5797, allocations: 147.6 kB / 0.5243 GB, free: 14.82 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01555/0.5953, allocations: 8.958 MB / 0.5331 GB, free: 12.67 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.5964, allocations: 0.7482 MB / 0.5338 GB, free: 12.38 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001959/0.5984, allocations: 1.258 MB / 0.535 GB, free: 11.5 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01585/0.6142, allocations: 8.565 MB / 0.5434 GB, free: 4.879 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.6143, allocations: 0 / 0.5434 GB, free: 4.879 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.6143, allocations: 0 / 0.5434 GB, free: 4.879 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.364e-05/0.6143, allocations: 4 kB / 0.5434 GB, free: 4.875 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.007271/0.6216, allocations: 3.424 MB / 0.5467 GB, free: 1.797 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.6216, allocations: 12.03 kB / 0.5467 GB, free: 1.785 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009208/0.6309, allocations: 1.209 MB / 0.5479 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/0.6331, allocations: 1.335 MB / 0.5492 GB, free: 15.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.6334, allocations: 347.3 kB / 0.5496 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000288/0.6337, allocations: 189.1 kB / 0.5497 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007166/0.6409, allocations: 3.432 MB / 0.5531 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.203e-05/0.6409, allocations: 2.906 kB / 0.5531 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/0.6411, allocations: 84.34 kB / 0.5532 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000119/0.6413, allocations: 101.8 kB / 0.5533 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007932/0.6492, allocations: 3.407 MB / 0.5566 GB, free: 9.887 MB / 410.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.01951/0.6688, allocations: 14.38 MB / 0.5706 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006334/0.6751, allocations: 2.797 MB / 0.5734 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002377/0.6775, allocations: 1.431 MB / 0.5748 GB, free: 8.828 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04647/0.724, allocations: 24.27 MB / 0.5985 GB, free: 13.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.013e-05/0.7241, allocations: 64.55 kB / 0.5985 GB, free: 13.62 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00238/0.7265, allocations: 446.5 kB / 0.599 GB, free: 13.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=175): time 4.027e-06/0.7265, allocations: 4 kB / 0.599 GB, free: 13.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.03444/0.7609, allocations: 11.98 MB / 0.6107 GB, free: 1.246 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/0.7611, allocations: 154.5 kB / 0.6108 GB, free: 1.062 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/0.7631, allocations: 1.408 MB / 0.6122 GB, free: 15.64 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002229/0.7634, allocations: 69.27 kB / 0.6122 GB, free: 15.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000674/0.764, allocations: 0.7854 MB / 0.613 GB, free: 14.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006419/0.7647, allocations: 0.6763 MB / 0.6137 GB, free: 14.11 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000769/0.7655, allocations: 443.7 kB / 0.6141 GB, free: 13.67 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.7656, allocations: 305.1 kB / 0.6144 GB, free: 13.37 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002452/0.7681, allocations: 1.269 MB / 0.6156 GB, free: 12.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002738/0.7708, allocations: 1.702 MB / 0.6173 GB, free: 10.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005119/0.7759, allocations: 2.927 MB / 0.6202 GB, free: 7.199 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.776, allocations: 0 / 0.6202 GB, free: 7.199 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007411/0.7834, allocations: 3.939 MB / 0.624 GB, free: 3.297 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.7834, allocations: 9 kB / 0.624 GB, free: 3.289 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.7835, allocations: 12 kB / 0.624 GB, free: 3.277 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004345/0.7878, allocations: 1.578 MB / 0.6256 GB, free: 1.676 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/0.7896, allocations: 448.1 kB / 0.626 GB, free: 1.262 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005797/0.7954, allocations: 6.708 MB / 0.6325 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/0.7976, allocations: 195.7 kB / 0.6327 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002075/0.7978, allocations: 115.9 kB / 0.6328 GB, free: 10.05 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 21 (mFlow3.medium.phase,openTankHot3.inFlow[1],openTankHot3.regularFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankCold3.inFlow[1],openTankCold3.regularFlow[1],openTankCold3.heatTransfer.states[1].phase,mFlow2.medium.phase,mFlow1.medium.phase,openTankHot2.inFlow[1],openTankHot2.regularFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot1.inFlow[1],openTankHot1.regularFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankCold1.inFlow[1],openTankCold1.regularFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold2.inFlow[1],openTankCold2.regularFlow[1],openTankCold2.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 204 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * 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): 9 systems {(1,5), (1,5), (4,6), (1,5), (1,5), (4,6), (1,5), (1,5), (6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0009972/0.7988, allocations: 0.5058 MB / 0.6333 GB, free: 9.559 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003906/0.7992, allocations: 197.8 kB / 0.6335 GB, free: 9.363 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01272/0.8119, allocations: 9.85 MB / 0.6431 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-05/0.812, allocations: 107.8 kB / 0.6432 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/0.8121, allocations: 0 / 0.6432 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.369e-05/0.8121, allocations: 15.89 kB / 0.6433 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01674/0.8288, allocations: 13.26 MB / 0.6562 GB, free: 1.961 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.8289, allocations: 0 / 0.6562 GB, free: 1.961 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.8305, allocations: 374.2 kB / 0.6566 GB, free: 1.609 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005715/0.8363, allocations: 3.798 MB / 0.6603 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002466/0.8365, allocations: 55.97 kB / 0.6603 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007504/0.844, allocations: 8.771 MB / 0.6689 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.8441, allocations: 0 / 0.6689 GB, free: 4.738 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.5776/1.422, allocations: 183.9 MB / 0.8485 GB, free: 81.29 MB / 0.5105 GB Error: post-optimization module symbolicJacobian (simulation) failed.