Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.919/1.919, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003519, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1069, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4233/0.5302, allocations: 77.27 MB / 385.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5305, allocations: 73.78 kB / 385.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06179/0.5924, allocations: 15.72 MB / 401.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5924, allocations: 0 / 401.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.619e-05/0.5925, allocations: 15.53 kB / 401.6 MB, free: 12.81 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003346/0.5958, allocations: 1.168 MB / 402.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.5959, allocations: 15.41 kB / 402.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003634/0.5963, allocations: 114.9 kB / 402.9 MB, free: 11.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002791/0.5966, allocations: 107.4 kB / 403 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.5979, allocations: 0.5191 MB / 403.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000268/0.5982, allocations: 150.5 kB / 403.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.5984, allocations: 56.22 kB / 403.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/0.6005, allocations: 0.8649 MB / 404.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/0.6005, allocations: 7.891 kB / 404.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.6007, allocations: 33.31 kB / 404.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.6007, allocations: 11.72 kB / 404.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002321/0.603, allocations: 0.6472 MB / 405.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004988/0.608, allocations: 2.092 MB / 407.4 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002522/0.6106, allocations: 1.068 MB / 408.4 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.6108, allocations: 22.53 kB / 408.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.6108, allocations: 51.91 kB / 408.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 3.617e-06/0.6108, allocations: 0 / 408.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.009125/0.62, allocations: 1.987 MB / 410.5 MB, free: 8.398 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001925/0.6202, allocations: 0.8218 MB / 411.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009738/0.6212, allocations: 0.5365 MB / 411.9 MB, free: 7.211 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002037/0.6214, allocations: 44.64 kB / 411.9 MB, free: 7.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.6217, allocations: 342.5 kB / 412.2 MB, free: 6.977 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002662/0.6219, allocations: 265.9 kB / 412.5 MB, free: 6.781 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.964e-05/0.622, allocations: 14.12 kB / 412.5 MB, free: 6.781 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.721e-05/0.6221, allocations: 336.8 kB / 412.8 MB, free: 6.461 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.6232, allocations: 294 kB / 413.1 MB, free: 6.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.6246, allocations: 0.5663 MB / 413.7 MB, free: 6.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.6259, allocations: 420.3 kB / 414.1 MB, free: 5.941 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.6259, allocations: 0 / 414.1 MB, free: 5.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004428/0.6303, allocations: 1.128 MB / 415.2 MB, free: 5.586 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.325e-05/0.6304, allocations: 89.56 kB / 415.3 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.6305, allocations: 0 / 415.3 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.6316, allocations: 255.4 kB / 415.6 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.6328, allocations: 146.3 kB / 415.7 MB, free: 5.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.6435, allocations: 6.556 MB / 422.3 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.6449, allocations: 118.5 kB / 422.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.336e-05/0.645, allocations: 28.92 kB / 422.4 MB, free: 15.79 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005557/0.6456, allocations: 219.3 kB / 422.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.6458, allocations: 89.28 kB / 422.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002359/0.6461, allocations: 87.11 kB / 422.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.6461, allocations: 7.625 kB / 422.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.6461, allocations: 0 / 422.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004116/0.6502, allocations: 1.336 MB / 424.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006482/0.6568, allocations: 2.013 MB / 426.2 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.6568, allocations: 0 / 426.2 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/0.6582, allocations: 151 kB / 426.3 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009335/0.6592, allocations: 210.2 kB / 426.5 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.6593, allocations: 18.06 kB / 426.5 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/0.6719, allocations: 5.119 MB / 431.7 MB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.672, allocations: 0 / 431.7 MB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008163/0.6801, allocations: 1.51 MB / 433.2 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/0.6807, allocations: 166.6 kB / 433.3 MB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003354/0.681, allocations: 19.62 kB / 433.3 MB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.6824, allocations: 67.95 kB / 433.4 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003297/0.6827, allocations: 60.78 kB / 433.5 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.992e-05/0.6828, allocations: 26.45 kB / 433.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001037/0.6839, allocations: 427.8 kB / 433.9 MB, free: 8.973 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6839, allocations: 0 / 433.9 MB, free: 8.973 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001804/0.6857, allocations: 280.7 kB / 434.2 MB, free: 8.957 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008414/0.6942, allocations: 2.107 MB / 436.3 MB, free: 7.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004886/0.6991, allocations: 1.391 MB / 437.7 MB, free: 7.199 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/0.6992, allocations: 0 / 437.7 MB, free: 7.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003233/0.7024, allocations: 0.806 MB / 438.5 MB, free: 6.758 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.7045, allocations: 205.9 kB / 438.7 MB, free: 6.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008028/0.7126, allocations: 2.565 MB / 441.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008933/0.7136, allocations: 0.9511 MB / 442.2 MB, free: 4.172 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009604/0.7145, allocations: 297 kB / 442.5 MB, free: 4.137 MB / 330.7 MB Notification: Performance of SimCode: time 1.233e-06/0.7146, allocations: 0 / 442.5 MB, free: 4.137 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.313/4.028, allocations: 23.7 MB / 466.2 MB, free: 14.44 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat