Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadModel(Modelica): time 1.584/1.584, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003573, allocations: 8 kB / 233.2 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06795/0.06833, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.284/0.3524, allocations: 78.15 MB / 350.1 MB, free: 0.668 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.04975/0.4022, allocations: 29.09 MB / 379.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003439/0.4057, allocations: 71.38 kB / 379.2 MB, free: 3.453 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004636/0.4104, allocations: 1.151 MB / 380.4 MB, free: 2.297 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01274/0.4231, allocations: 3.533 MB / 383.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02601/0.4492, allocations: 7.067 MB / 391 MB, free: 7.668 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007974/0.4572, allocations: 3.785 MB / 394.8 MB, free: 3.879 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003407/0.4606, allocations: 1.669 MB / 396.4 MB, free: 2.188 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01626/0.4769, allocations: 7.417 MB / 403.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003317/0.4803, allocations: 1.456 MB / 405.3 MB, free: 9.301 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006686/0.481, allocations: 136 kB / 405.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02272/0.5037, allocations: 8.522 MB / 414 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001486/0.5053, allocations: 0.6778 MB / 414.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.5064, allocations: 468.6 kB / 415.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01306/0.5195, allocations: 5.784 MB / 420.9 MB, free: 9.695 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5196, allocations: 7.938 kB / 420.9 MB, free: 9.688 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.656e-06/0.5196, allocations: 0 / 420.9 MB, free: 9.688 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.007e-05/0.5197, allocations: 0 / 420.9 MB, free: 9.688 MB / 346.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.009352/0.529, allocations: 2.943 MB / 423.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.5291, allocations: 12.03 kB / 423.8 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01342/0.5425, allocations: 1.176 MB / 425 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003569/0.5461, allocations: 1.314 MB / 426.3 MB, free: 4.125 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004872/0.5467, allocations: 349.8 kB / 426.7 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006072/0.5473, allocations: 187.9 kB / 426.9 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1949/0.7422, allocations: 3.49 MB / 430.4 MB, free: 114.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.7424, allocations: 6.984 kB / 430.4 MB, free: 114.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006245/0.743, allocations: 79.16 kB / 430.4 MB, free: 114.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002072/0.7432, allocations: 105.1 kB / 430.5 MB, free: 114.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01458/0.7578, allocations: 3.51 MB / 434 MB, free: 114.4 MB / 346.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.02769/0.7856, allocations: 14.5 MB / 448.6 MB, free: 104.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/0.7961, allocations: 2.908 MB / 451.5 MB, free: 103.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04368/0.8398, allocations: 19.88 MB / 471.3 MB, free: 86.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.587e-05/0.8399, allocations: 60.52 kB / 471.4 MB, free: 86.44 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002803/0.8427, allocations: 458.9 kB / 471.9 MB, free: 86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=175): time 8.117e-06/0.8428, allocations: 0 / 471.9 MB, free: 86 MB / 346.7 MB Notification: Performance of matching and sorting (n=205): time 0.0485/0.8913, allocations: 12.47 MB / 484.3 MB, free: 73.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.8914, allocations: 150.5 kB / 484.5 MB, free: 73.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.8935, allocations: 1.396 MB / 485.9 MB, free: 71.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004636/0.894, allocations: 61.7 kB / 485.9 MB, free: 71.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004605/0.8945, allocations: 0.7518 MB / 486.7 MB, free: 71.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007961/0.8953, allocations: 0.6777 MB / 487.4 MB, free: 70.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.8955, allocations: 44 kB / 487.4 MB, free: 70.36 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.8957, allocations: 395.1 kB / 487.8 MB, free: 69.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003408/0.8991, allocations: 1.308 MB / 489.1 MB, free: 68.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003799/0.9029, allocations: 1.781 MB / 490.9 MB, free: 66.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003687/0.9066, allocations: 1.427 MB / 492.3 MB, free: 65.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.9067, allocations: 4 kB / 492.3 MB, free: 65.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01062/0.9173, allocations: 3.983 MB / 496.3 MB, free: 61.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000213/0.9176, allocations: 468.2 kB / 496.7 MB, free: 60.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.9176, allocations: 12 kB / 496.8 MB, free: 60.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006642/0.9243, allocations: 1.591 MB / 498.3 MB, free: 58.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/0.927, allocations: 483.3 kB / 498.8 MB, free: 58.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006707/0.9337, allocations: 6.708 MB / 0.4937 GB, free: 51.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003127/0.9369, allocations: 223.6 kB / 0.4939 GB, free: 51.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003541/0.9373, allocations: 119.9 kB / 0.494 GB, free: 51.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.9373, allocations: 4 kB / 0.494 GB, free: 51.25 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00902/0.9463, allocations: 3.561 MB / 0.4975 GB, free: 47.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/0.9464, allocations: 12 kB / 0.4975 GB, free: 47.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003152/0.9496, allocations: 1.001 MB / 0.4985 GB, free: 46.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002822/0.9524, allocations: 0.5031 MB / 0.499 GB, free: 46.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/0.963, allocations: 10.3 MB / 0.509 GB, free: 35.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002436/0.9655, allocations: 215.7 kB / 0.5092 GB, free: 35.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/0.9658, allocations: 116 kB / 0.5093 GB, free: 34.96 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (219): * Single equations (assignments): 210 * 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.001385/0.9672, allocations: 0.585 MB / 0.5099 GB, free: 34.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000512/0.9678, allocations: 205.6 kB / 0.5101 GB, free: 34.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01643/0.9842, allocations: 9.975 MB / 0.5198 GB, free: 24.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.159e-05/0.9843, allocations: 107.8 kB / 0.5199 GB, free: 23.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.152e-06/0.9844, allocations: 0 / 0.5199 GB, free: 23.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-05/0.9844, allocations: 11.95 kB / 0.52 GB, free: 23.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02165/1.006, allocations: 13.34 MB / 0.533 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/1.006, allocations: 0 / 0.533 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002685/1.009, allocations: 415.4 kB / 0.5334 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008018/1.017, allocations: 4.098 MB / 0.5374 GB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004077/1.017, allocations: 63.97 kB / 0.5374 GB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009886/1.027, allocations: 8.751 MB / 0.546 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/1.027, allocations: 128 / 0.546 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02282/1.05, allocations: 10.77 MB / 0.5565 GB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002329/1.052, allocations: 0.8971 MB / 0.5574 GB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005052/1.053, allocations: 48 kB / 0.5574 GB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002741/1.056, allocations: 247.5 kB / 0.5577 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006664/1.056, allocations: 229.7 kB / 0.5579 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002918/1.057, allocations: 91.88 kB / 0.558 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.1915/1.248, allocations: 1.25 MB / 0.5592 GB, free: 122.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.676e-06/1.248, allocations: 0 / 0.5592 GB, free: 122.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007802/1.256, allocations: 2.235 MB / 0.5614 GB, free: 122.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.level,openTankCold2.medium.h,openTankCold1.level,openTankCold1.medium.h,openTankHot1.level,openTankHot1.medium.h,openTankHot2.level,openTankHot2.medium.h,openTankCold3.level,openTankCold3.medium.h,openTankHot3.level,openTankHot3.medium.h) * Number of discrete variables: 71 ($cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.region3boundary,$cse52.region3boundary,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,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 simulation (173): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * 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 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.006798/1.263, allocations: 1.738 MB / 0.5631 GB, free: 122 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01878/1.282, allocations: 6.585 MB / 0.5695 GB, free: 120.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.519e-06/1.282, allocations: 4.531 kB / 0.5695 GB, free: 120.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008957/1.291, allocations: 3.152 MB / 0.5726 GB, free: 119.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00666/1.298, allocations: 1.046 MB / 0.5736 GB, free: 119.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/1.313, allocations: 9.594 MB / 0.583 GB, free: 114.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/1.315, allocations: 2.203 MB / 0.5851 GB, free: 113.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/1.316, allocations: 203.2 kB / 0.5853 GB, free: 113.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.874e-06/1.316, allocations: 0 / 0.5853 GB, free: 113.2 MB / 362.7 MB Notification: Performance of Templates: time 0.3632/1.679, allocations: 171.8 MB / 0.7531 GB, free: 68.34 MB / 362.7 MB