Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.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.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001833/0.001833, 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.398/1.398, allocations: 222.9 MB / 240.9 MB, free: 10.99 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.001157/0.001158, allocations: 106.7 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008082/0.0008082, allocations: 39.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2439, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.07847/0.3224, allocations: 96.08 MB / 495.5 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.2903/0.6127, allocations: 35.72 MB / 0.5188 GB, free: 1.387 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00328/0.616, allocations: 73.53 kB / 0.5189 GB, free: 1.387 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003739/0.6198, allocations: 1.183 MB / 0.52 GB, free: 1.371 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.6308, allocations: 3.954 MB / 0.5239 GB, free: 1.223 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02218/0.653, allocations: 7.622 MB / 0.5313 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.6639, allocations: 8.867 MB / 0.54 GB, free: 0 / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003471/0.6674, allocations: 1.793 MB / 0.5418 GB, free: 15.28 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01415/0.6816, allocations: 5.49 MB / 0.5471 GB, free: 13.11 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004963/0.6866, allocations: 2.188 MB / 0.5493 GB, free: 12.33 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009596/0.6876, allocations: 148.3 kB / 0.5494 GB, free: 12.33 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02086/0.7085, allocations: 8.972 MB / 0.5582 GB, free: 6.062 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001835/0.7103, allocations: 0.7494 MB / 0.5589 GB, free: 5.535 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002959/0.7133, allocations: 1.255 MB / 0.5601 GB, free: 4.59 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02073/0.7341, allocations: 8.572 MB / 0.5685 GB, free: 13.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.7341, allocations: 0 / 0.5685 GB, free: 13.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.7341, allocations: 0 / 0.5685 GB, free: 13.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.912e-05/0.7342, allocations: 0 / 0.5685 GB, free: 13.02 MB / 410.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.009302/0.7435, allocations: 3.44 MB / 0.5718 GB, free: 9.559 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.7436, allocations: 8.031 kB / 0.5718 GB, free: 9.551 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.7542, allocations: 1.211 MB / 0.573 GB, free: 8.344 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003143/0.7573, allocations: 1.333 MB / 0.5743 GB, free: 6.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002915/0.7577, allocations: 350.1 kB / 0.5747 GB, free: 6.605 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003962/0.7581, allocations: 188.9 kB / 0.5748 GB, free: 6.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007975/0.7661, allocations: 3.427 MB / 0.5782 GB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.293e-05/0.7661, allocations: 3.938 kB / 0.5782 GB, free: 2.898 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002476/0.7664, allocations: 86.41 kB / 0.5783 GB, free: 2.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.7665, allocations: 103.3 kB / 0.5784 GB, free: 2.719 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0082/0.7747, allocations: 3.404 MB / 0.5817 GB, free: 15.31 MB / 426.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.0212/0.7959, allocations: 14.37 MB / 0.5957 GB, free: 172 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006844/0.8028, allocations: 2.808 MB / 0.5985 GB, free: 13.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002611/0.8055, allocations: 1.424 MB / 0.5999 GB, free: 11.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05026/0.8557, allocations: 24.27 MB / 0.6236 GB, free: 0.793 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.305e-05/0.8559, allocations: 60.56 kB / 0.6236 GB, free: 0.7266 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002739/0.8586, allocations: 446.4 kB / 0.6241 GB, free: 304 kB / 458.7 MB Notification: Performance of pre-optimization done (n=175): time 5.981e-06/0.8586, allocations: 0 / 0.6241 GB, free: 304 kB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.03843/0.8971, allocations: 11.99 MB / 0.6358 GB, free: 4.301 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/0.8972, allocations: 154.5 kB / 0.6359 GB, free: 4.121 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.8992, allocations: 1.408 MB / 0.6373 GB, free: 2.703 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003245/0.8995, allocations: 61.7 kB / 0.6373 GB, free: 2.637 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005684/0.9001, allocations: 0.7838 MB / 0.6381 GB, free: 1.848 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006912/0.9008, allocations: 0.6752 MB / 0.6388 GB, free: 1.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007278/0.9015, allocations: 455.6 kB / 0.6392 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.9016, allocations: 305.1 kB / 0.6395 GB, free: 436 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.9041, allocations: 1.269 MB / 0.6407 GB, free: 15.15 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002858/0.907, allocations: 1.694 MB / 0.6424 GB, free: 13.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005149/0.9122, allocations: 2.926 MB / 0.6452 GB, free: 10.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.9122, allocations: 4 kB / 0.6453 GB, free: 10.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007895/0.9201, allocations: 3.938 MB / 0.6491 GB, free: 6.227 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.9202, allocations: 12 kB / 0.6491 GB, free: 6.215 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.9202, allocations: 12 kB / 0.6491 GB, free: 6.203 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004597/0.9248, allocations: 1.573 MB / 0.6507 GB, free: 4.602 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002065/0.9269, allocations: 455.3 kB / 0.6511 GB, free: 4.156 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00593/0.9328, allocations: 6.697 MB / 0.6576 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/0.9353, allocations: 195.6 kB / 0.6578 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/0.9356, allocations: 115.9 kB / 0.6579 GB, free: 12.93 MB / 0.4948 GB 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.001055/0.9367, allocations: 0.5081 MB / 0.6584 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004526/0.9371, allocations: 197.8 kB / 0.6586 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01389/0.951, allocations: 9.855 MB / 0.6682 GB, free: 2.262 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001165/0.9512, allocations: 107.8 kB / 0.6683 GB, free: 2.156 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.9512, allocations: 0 / 0.6683 GB, free: 2.156 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.768e-05/0.9513, allocations: 11.95 kB / 0.6684 GB, free: 2.145 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02007/0.9714, allocations: 13.26 MB / 0.6813 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.9714, allocations: 0 / 0.6813 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00185/0.9733, allocations: 367.5 kB / 0.6816 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006729/0.98, allocations: 3.807 MB / 0.6854 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005264/0.9806, allocations: 63.97 kB / 0.6854 GB, free: 0.5195 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1927/1.173, allocations: 8.767 MB / 0.694 GB, free: 226.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.173, allocations: 0.5156 kB / 0.694 GB, free: 226.6 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.4246/1.598, allocations: 183.9 MB / 0.8736 GB, free: 53.54 MB / 0.5105 GB Error: post-optimization module symbolicJacobian (simulation) failed.