Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.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.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002351/0.002351, allocations: 200.9 kB / 18.05 MB, free: 3.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 226.5 MB / 245.3 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001224/0.001224, allocations: 111.5 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003689/0.0003689, allocations: 4 kB / 357.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4446, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.1006/0.5453, allocations: 88.92 MB / 497.6 MB, free: 2.57 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.5115/1.057, allocations: 32.47 MB / 0.5176 GB, free: 6.734 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006751/1.064, allocations: 67.38 kB / 0.5177 GB, free: 6.734 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006883/1.071, allocations: 1.115 MB / 0.5188 GB, free: 6.73 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.02256/1.093, allocations: 4.061 MB / 0.5228 GB, free: 6.613 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03962/1.133, allocations: 7.041 MB / 0.5296 GB, free: 6.438 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01677/1.15, allocations: 7.422 MB / 0.5369 GB, free: 5.379 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006209/1.156, allocations: 1.755 MB / 0.5386 GB, free: 4.652 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02343/1.179, allocations: 7.839 MB / 0.5463 GB, free: 3.242 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007589/1.187, allocations: 2.068 MB / 0.5483 GB, free: 2.508 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001978/1.189, allocations: 139.8 kB / 0.5484 GB, free: 2.508 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03983/1.229, allocations: 8.666 MB / 0.5569 GB, free: 13.11 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004732/1.234, allocations: 0.7065 MB / 0.5576 GB, free: 12.61 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007439/1.241, allocations: 1.218 MB / 0.5588 GB, free: 11.69 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02846/1.27, allocations: 6.113 MB / 0.5647 GB, free: 6.488 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.822e-05/1.27, allocations: 2.734 kB / 0.5647 GB, free: 6.488 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.422e-06/1.27, allocations: 4 kB / 0.5647 GB, free: 6.484 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001586/1.27, allocations: 4 kB / 0.5647 GB, free: 6.48 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.01417/1.284, allocations: 2.967 MB / 0.5676 GB, free: 3.676 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001107/1.284, allocations: 8.875 kB / 0.5676 GB, free: 3.668 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01141/1.296, allocations: 1.264 MB / 0.5689 GB, free: 2.445 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004006/1.3, allocations: 1.34 MB / 0.5702 GB, free: 1.359 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004845/1.3, allocations: 343.2 kB / 0.5705 GB, free: 1.062 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004372/1.301, allocations: 189.9 kB / 0.5707 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/1.311, allocations: 3.494 MB / 0.5741 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.644e-05/1.311, allocations: 7.938 kB / 0.5741 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002842/1.311, allocations: 76.42 kB / 0.5742 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001922/1.312, allocations: 109.1 kB / 0.5743 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009834/1.321, allocations: 3.506 MB / 0.5777 GB, free: 11.46 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.03239/1.354, allocations: 14.48 MB / 0.5919 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009023/1.363, allocations: 2.92 MB / 0.5947 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003437/1.366, allocations: 1.45 MB / 0.5961 GB, free: 11.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06437/1.431, allocations: 27.07 MB / 0.6226 GB, free: 13.72 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/1.431, allocations: 60.31 kB / 0.6226 GB, free: 13.67 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00491/1.436, allocations: 452.2 kB / 0.623 GB, free: 13.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=175): time 3.218e-05/1.436, allocations: 0 / 0.623 GB, free: 13.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.0506/1.487, allocations: 12.46 MB / 0.6352 GB, free: 3.543 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002018/1.487, allocations: 150.5 kB / 0.6354 GB, free: 3.363 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003502/1.491, allocations: 1.392 MB / 0.6367 GB, free: 2.312 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003532/1.491, allocations: 68.69 kB / 0.6368 GB, free: 2.266 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009555/1.492, allocations: 0.7764 MB / 0.6375 GB, free: 1.785 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/1.493, allocations: 0.6752 MB / 0.6382 GB, free: 1.211 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/1.493, allocations: 44.06 kB / 0.6382 GB, free: 1.199 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003215/1.493, allocations: 395.1 kB / 0.6386 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003302/1.497, allocations: 1.292 MB / 0.6399 GB, free: 15.76 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003598/1.5, allocations: 1.737 MB / 0.6416 GB, free: 13.85 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006652/1.507, allocations: 2.994 MB / 0.6445 GB, free: 10.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/1.507, allocations: 7.938 kB / 0.6445 GB, free: 10.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01024/1.517, allocations: 4.027 MB / 0.6484 GB, free: 6.629 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.625e-05/1.517, allocations: 8 kB / 0.6484 GB, free: 6.621 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.388e-05/1.518, allocations: 12.88 kB / 0.6485 GB, free: 6.609 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005292/1.523, allocations: 1.587 MB / 0.65 GB, free: 4.996 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002538/1.525, allocations: 471.3 kB / 0.6505 GB, free: 4.535 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009008/1.534, allocations: 6.698 MB / 0.657 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003954/1.538, allocations: 219.7 kB / 0.6572 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007067/1.539, allocations: 115.9 kB / 0.6573 GB, free: 13.28 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 (openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {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.00249/1.542, allocations: 0.5126 MB / 0.6578 GB, free: 12.76 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/1.543, allocations: 197.7 kB / 0.658 GB, free: 12.57 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01985/1.563, allocations: 9.986 MB / 0.6678 GB, free: 2.461 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.437e-05/1.563, allocations: 15.95 kB / 0.6678 GB, free: 2.445 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/1.563, allocations: 0 / 0.6678 GB, free: 2.445 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003053/1.566, allocations: 0.8932 MB / 0.6686 GB, free: 1.527 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001027/1.567, allocations: 48 kB / 0.6687 GB, free: 1.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003594/1.571, allocations: 317.9 kB / 0.669 GB, free: 1.172 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007852/1.571, allocations: 225.6 kB / 0.6692 GB, free: 0.9492 MB / 490.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:155:5-155: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(Util.intCompare) [bt] #4 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.compare) [bt] #5 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.expEqual) [bt] #6 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyBinary) [bt] #7 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyWork) [bt] #8...10 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpBottomUp) [bt] #11 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify1FixP) [bt] #12 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify1) [bt] #13 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyBinaryCommutativeWork) [bt] #14 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyBinary) [bt] #15 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyWork) [bt] #16 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpBottomUp) [bt] #17 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpList) [bt] #18...23 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Expression.traverseExpBottomUp) [bt] #24 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify1FixP) [bt] #25 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplifyWithOptions) [bt] #26 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSimplify.simplify) [bt] #27 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(Differentiate.differentiateExpSolve) [bt] #28 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveLinearSystem) [bt] #29 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #30 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveIfExp) [bt] #31 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solveWork) [bt] #32 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(ExpressionSolve.solve) [bt] #33...1024 /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so(DAEMode.traverserStrongComponents) [bt] #1025 [...]