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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001265, allocations: 111.2 kB / 18.41 MB, free: 4.688 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.001039/0.001039, allocations: 191.3 kB / 19.35 MB, free: 3.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.229/1.229, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 47.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06925/0.07041, allocations: 46.62 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.221/0.2914, allocations: 93.95 MB / 469.8 MB, free: 1.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03712/0.3286, allocations: 34.34 MB / 0.4923 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001776/0.3304, allocations: 47.75 kB / 0.4923 GB, free: 15.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002841/0.3333, allocations: 1.328 MB / 0.4936 GB, free: 13.69 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.3442, allocations: 4.566 MB / 0.4981 GB, free: 9.105 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01974/0.3639, allocations: 8.711 MB / 0.5066 GB, free: 372 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007013/0.371, allocations: 6.192 MB / 0.5127 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/0.3732, allocations: 2.011 MB / 0.5146 GB, free: 8.137 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01096/0.3841, allocations: 5.803 MB / 0.5203 GB, free: 2.273 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00272/0.3869, allocations: 2.16 MB / 0.5224 GB, free: 108 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004343/0.3873, allocations: 256 kB / 0.5226 GB, free: 15.85 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01724/0.4046, allocations: 9.135 MB / 0.5316 GB, free: 6.711 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008735/0.4055, allocations: 0.8454 MB / 0.5324 GB, free: 5.863 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.407, allocations: 1.358 MB / 0.5337 GB, free: 4.5 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01406/0.4211, allocations: 8.688 MB / 0.5422 GB, free: 11.79 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4211, allocations: 0 / 0.5422 GB, free: 11.79 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4211, allocations: 0 / 0.5422 GB, free: 11.79 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.011e-05/0.4212, allocations: 0 / 0.5422 GB, free: 11.79 MB / 478.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.00724/0.4284, allocations: 3.53 MB / 0.5456 GB, free: 8.191 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.4285, allocations: 19.89 kB / 0.5457 GB, free: 8.172 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01074/0.4392, allocations: 1.209 MB / 0.5468 GB, free: 6.961 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.4414, allocations: 1.421 MB / 0.5482 GB, free: 5.484 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/0.4417, allocations: 350.3 kB / 0.5486 GB, free: 5.105 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003251/0.442, allocations: 184.4 kB / 0.5487 GB, free: 4.926 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007855/0.4499, allocations: 3.414 MB / 0.5521 GB, free: 1.395 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.216e-05/0.45, allocations: 11.89 kB / 0.5521 GB, free: 1.383 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002373/0.4502, allocations: 83.97 kB / 0.5522 GB, free: 1.301 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001217/0.4503, allocations: 99.33 kB / 0.5523 GB, free: 1.203 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1602/0.6106, allocations: 3.402 MB / 0.5556 GB, free: 157.1 MB / 478.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.01816/0.6288, allocations: 14.36 MB / 0.5696 GB, free: 147.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00662/0.6354, allocations: 2.818 MB / 0.5724 GB, free: 146.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.6377, allocations: 1.431 MB / 0.5738 GB, free: 146.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0408/0.6786, allocations: 24.37 MB / 0.5976 GB, free: 127.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.6786, allocations: 64.38 kB / 0.5976 GB, free: 127.9 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001671/0.6803, allocations: 331.4 kB / 0.5979 GB, free: 127.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=175): time 3.867e-06/0.6803, allocations: 0 / 0.5979 GB, free: 127.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=205): time 0.03202/0.7123, allocations: 12.03 MB / 0.6097 GB, free: 118.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.7124, allocations: 154.5 kB / 0.6098 GB, free: 118 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.7137, allocations: 1.405 MB / 0.6112 GB, free: 116.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000158/0.7138, allocations: 65.7 kB / 0.6113 GB, free: 116.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.7142, allocations: 0.8011 MB / 0.612 GB, free: 115.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003594/0.7145, allocations: 0.7049 MB / 0.6127 GB, free: 115.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006131/0.7152, allocations: 447.7 kB / 0.6132 GB, free: 114.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.12e-05/0.7152, allocations: 313.1 kB / 0.6135 GB, free: 114.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.7173, allocations: 1.261 MB / 0.6147 GB, free: 113.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/0.7196, allocations: 1.697 MB / 0.6163 GB, free: 111.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004385/0.724, allocations: 2.922 MB / 0.6192 GB, free: 108.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.7241, allocations: 4 kB / 0.6192 GB, free: 108.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.006554/0.7306, allocations: 3.947 MB / 0.6231 GB, free: 104.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.7306, allocations: 15.92 kB / 0.6231 GB, free: 104.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.7307, allocations: 13.31 kB / 0.6231 GB, free: 104.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004254/0.7349, allocations: 1.581 MB / 0.6246 GB, free: 102.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00176/0.7367, allocations: 451.3 kB / 0.6251 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004447/0.7412, allocations: 6.694 MB / 0.6316 GB, free: 95.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.7428, allocations: 127.9 kB / 0.6317 GB, free: 95.14 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/0.7431, allocations: 115.9 kB / 0.6318 GB, free: 95.03 MB / 478.1 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.000742/0.7438, allocations: 0.5064 MB / 0.6323 GB, free: 94.52 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003616/0.7442, allocations: 210.7 kB / 0.6325 GB, free: 94.31 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/0.7549, allocations: 9.837 MB / 0.6421 GB, free: 84.45 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.7549, allocations: 15.95 kB / 0.6421 GB, free: 84.44 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.85e-06/0.7549, allocations: 0 / 0.6421 GB, free: 84.44 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008293/0.7557, allocations: 0.7007 MB / 0.6428 GB, free: 83.78 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003525/0.7561, allocations: 106.3 kB / 0.6429 GB, free: 83.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00184/0.7579, allocations: 203.8 kB / 0.6431 GB, free: 83.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/0.7584, allocations: 221.7 kB / 0.6433 GB, free: 83.28 MB / 478.1 MB [/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 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ComponentReference.crefEqualNoStringCompare) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traversingexpHasCref) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(boxptr_Expression_traversingexpHasCref) [bt] #6...10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpTopDown1) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.expHasCref) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateFunctionCall) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateCalls) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #18 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #19 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #20 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #21 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateBinary) [bt] #22 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExp) [bt] #23 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExpSolve) [bt] #24 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveLinearSystem) [bt] #25 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #26 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveIfExp) [bt] #27 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #28 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solve) [bt] #29...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