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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 110.3 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 185.4 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009316/0.0009317, allocations: 39.94 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2083, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.08164/0.29, allocations: 93.95 MB / 495.4 MB, free: 10.61 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03832/0.3283, allocations: 34.35 MB / 0.5173 GB, free: 8.152 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.3303, allocations: 51.69 kB / 0.5174 GB, free: 8.102 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003298/0.3336, allocations: 1.328 MB / 0.5187 GB, free: 6.766 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01045/0.3441, allocations: 4.568 MB / 0.5231 GB, free: 2.188 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02022/0.3643, allocations: 8.731 MB / 0.5316 GB, free: 9.461 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.007162/0.3715, allocations: 6.195 MB / 0.5377 GB, free: 3.242 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002573/0.3741, allocations: 2.001 MB / 0.5396 GB, free: 1.215 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2047/0.5788, allocations: 5.808 MB / 0.5453 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002754/0.5816, allocations: 2.153 MB / 0.5474 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004925/0.5821, allocations: 256.1 kB / 0.5477 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01452/0.5966, allocations: 9.138 MB / 0.5566 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008255/0.5975, allocations: 0.8453 MB / 0.5574 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.5989, allocations: 1.362 MB / 0.5587 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.6113, allocations: 8.66 MB / 0.5672 GB, free: 12.29 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.6113, allocations: 4 kB / 0.5672 GB, free: 12.29 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.6113, allocations: 0 / 0.5672 GB, free: 12.29 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.356e-05/0.6113, allocations: 0 / 0.5672 GB, free: 12.29 MB / 462.1 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.006912/0.6183, allocations: 3.423 MB / 0.5705 GB, free: 10.79 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.6183, allocations: 10.03 kB / 0.5706 GB, free: 10.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01093/0.6292, allocations: 1.213 MB / 0.5717 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002257/0.6315, allocations: 1.411 MB / 0.5731 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.6317, allocations: 350.1 kB / 0.5734 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003077/0.632, allocations: 184.8 kB / 0.5736 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007492/0.6395, allocations: 3.416 MB / 0.577 GB, free: 9.664 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.635e-05/0.6396, allocations: 13.2 kB / 0.577 GB, free: 9.664 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/0.6399, allocations: 81.97 kB / 0.5771 GB, free: 9.664 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/0.64, allocations: 98.83 kB / 0.5771 GB, free: 9.66 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007937/0.6479, allocations: 3.405 MB / 0.5805 GB, free: 9.633 MB / 462.1 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.01815/0.6661, allocations: 14.36 MB / 0.5945 GB, free: 17.07 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0065/0.6726, allocations: 2.81 MB / 0.5972 GB, free: 16.48 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002287/0.6749, allocations: 1.423 MB / 0.5986 GB, free: 16.23 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04885/0.7238, allocations: 24.36 MB / 0.6224 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.861e-05/0.7238, allocations: 59.81 kB / 0.6225 GB, free: 5.574 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001788/0.7256, allocations: 332.4 kB / 0.6228 GB, free: 5.316 MB / 494.1 MB Notification: Performance of pre-optimization done (n=175): time 5.451e-06/0.7257, allocations: 0 / 0.6228 GB, free: 5.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=205): time 0.03804/0.7637, allocations: 12 MB / 0.6345 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.7638, allocations: 154.5 kB / 0.6347 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.7655, allocations: 1.411 MB / 0.636 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000205/0.7658, allocations: 60.2 kB / 0.6361 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004922/0.7663, allocations: 0.784 MB / 0.6369 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005418/0.7668, allocations: 0.6778 MB / 0.6375 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00073/0.7675, allocations: 446.4 kB / 0.6379 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.322e-05/0.7676, allocations: 309 kB / 0.6382 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002551/0.7702, allocations: 1.263 MB / 0.6395 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002891/0.7731, allocations: 1.707 MB / 0.6411 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005439/0.7785, allocations: 2.923 MB / 0.644 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.7786, allocations: 6.125 kB / 0.644 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.007986/0.7866, allocations: 3.934 MB / 0.6478 GB, free: 24 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.7866, allocations: 16.17 kB / 0.6479 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.038e-05/0.7866, allocations: 12.05 kB / 0.6479 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004824/0.7915, allocations: 1.573 MB / 0.6494 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/0.7935, allocations: 452.2 kB / 0.6498 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00602/0.7995, allocations: 6.703 MB / 0.6564 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001893/0.8014, allocations: 123.9 kB / 0.6565 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/0.8016, allocations: 115.9 kB / 0.6566 GB, free: 6.844 MB / 0.5137 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.0009499/0.8026, allocations: 0.5058 MB / 0.6571 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004688/0.8031, allocations: 201.6 kB / 0.6573 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/0.8168, allocations: 9.807 MB / 0.6669 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.819e-05/0.8169, allocations: 11.95 kB / 0.6669 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/0.8169, allocations: 0 / 0.6669 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.8182, allocations: 0.6873 MB / 0.6676 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004917/0.8187, allocations: 99.12 kB / 0.6677 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/0.8208, allocations: 207.7 kB / 0.6678 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004624/0.8213, allocations: 221.7 kB / 0.6681 GB, free: 11.01 MB / 0.5294 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:161:5-161:157:writable] Error: Internal error Stack overflow in DAEMode.getEqSystemDAEmode... [bt] #1 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_setStacktraceMessages_threadData) [bt] #2 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so(mmc_do_stackoverflow) [bt] #3...4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.crefEqualNoStringCompare) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traversingexpHasCref) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_Expression_traversingexpHasCref) [bt] #7...11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.expHasCref) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateFunctionCall) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateCalls) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #23 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #24 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExpSolve) [bt] #25 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveLinearSystem) [bt] #26 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #27 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveIfExp) [bt] #28 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #29 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solve) [bt] #30...1024 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.traverserStrongComponents) [bt] #1025 [...] Error: Internal error SimCode DAEmode: The model Modelica.Fluid.Examples.Explanatory.MeasuringTemperature could not be translated