Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.066/2.066, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003477, allocations: 8 kB / 264.1 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3163, allocations: 44.51 MB / 308.6 MB, free: 12.78 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1542/0.4705, allocations: 77.27 MB / 385.8 MB, free: 15.39 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.4709, allocations: 71.97 kB / 385.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06747/0.5384, allocations: 15.72 MB / 401.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5384, allocations: 0 / 401.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.548e-05/0.5385, allocations: 16 kB / 401.6 MB, free: 15.47 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003295/0.5418, allocations: 1.173 MB / 402.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.5418, allocations: 8.031 kB / 402.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002749/0.5421, allocations: 127.6 kB / 402.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002485/0.5424, allocations: 103.2 kB / 403 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.5436, allocations: 0.5155 MB / 403.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003028/0.5439, allocations: 154.4 kB / 403.7 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.5441, allocations: 60 kB / 403.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002371/0.5465, allocations: 0.8596 MB / 404.6 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.209e-05/0.5466, allocations: 3.906 kB / 404.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.5467, allocations: 28 kB / 404.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.5467, allocations: 20 kB / 404.7 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/0.5493, allocations: 0.6454 MB / 405.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005628/0.555, allocations: 2.092 MB / 407.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003283/0.5583, allocations: 1.072 MB / 408.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/0.5585, allocations: 12.64 kB / 408.5 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.905e-05/0.5586, allocations: 51.2 kB / 408.6 MB, free: 8.121 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 7.855e-06/0.5587, allocations: 0 / 408.6 MB, free: 8.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.01532/0.574, allocations: 1.991 MB / 410.5 MB, free: 6.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006086/0.5747, allocations: 0.8195 MB / 411.4 MB, free: 5.027 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/0.5765, allocations: 0.5384 MB / 411.9 MB, free: 4.484 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000312/0.5769, allocations: 49.64 kB / 411.9 MB, free: 4.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005409/0.5775, allocations: 329 kB / 412.3 MB, free: 4.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005338/0.578, allocations: 256.1 kB / 412.5 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.5782, allocations: 20 kB / 412.5 MB, free: 3.832 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003257/0.5785, allocations: 382.8 kB / 412.9 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002046/0.5806, allocations: 293.8 kB / 413.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002538/0.5831, allocations: 0.5608 MB / 413.8 MB, free: 2.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002279/0.5855, allocations: 419.9 kB / 414.2 MB, free: 2.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.5855, allocations: 0 / 414.2 MB, free: 2.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.008281/0.5938, allocations: 1.176 MB / 415.3 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.594, allocations: 93.05 kB / 415.4 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.594, allocations: 0 / 415.4 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001938/0.596, allocations: 251.3 kB / 415.7 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/0.5982, allocations: 143.8 kB / 415.8 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.285/0.8833, allocations: 6.554 MB / 422.4 MB, free: 86.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.8846, allocations: 112 kB / 422.5 MB, free: 86.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.659e-05/0.8848, allocations: 26.34 kB / 422.5 MB, free: 86.43 MB / 346.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.0005002/0.8853, allocations: 214.8 kB / 422.7 MB, free: 86.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.8855, allocations: 90.72 kB / 422.8 MB, free: 86.31 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002281/0.8857, allocations: 95.05 kB / 422.9 MB, free: 86.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.8857, allocations: 7.812 kB / 422.9 MB, free: 86.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.8857, allocations: 4.453 kB / 422.9 MB, free: 86.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003947/0.8897, allocations: 1.326 MB / 424.2 MB, free: 85.72 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006095/0.8958, allocations: 2.009 MB / 426.3 MB, free: 85.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.8959, allocations: 4.125 kB / 426.3 MB, free: 85.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.8973, allocations: 143.9 kB / 426.4 MB, free: 85.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009381/0.8983, allocations: 215 kB / 426.6 MB, free: 85.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/0.8984, allocations: 26.95 kB / 426.6 MB, free: 85.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009184/0.9076, allocations: 5.118 MB / 431.7 MB, free: 81.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.9077, allocations: 3.047 kB / 431.8 MB, free: 81.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005655/0.9133, allocations: 1.503 MB / 433.3 MB, free: 80.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003064/0.9137, allocations: 171.4 kB / 433.4 MB, free: 80.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/0.9139, allocations: 18.84 kB / 433.4 MB, free: 80.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009103/0.9148, allocations: 66.88 kB / 433.5 MB, free: 80.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.9151, allocations: 65.58 kB / 433.6 MB, free: 80.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.471e-05/0.9152, allocations: 22.42 kB / 433.6 MB, free: 80.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006977/0.9159, allocations: 431.9 kB / 434 MB, free: 80.53 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.9159, allocations: 0 / 434 MB, free: 80.53 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001141/0.917, allocations: 287.5 kB / 434.3 MB, free: 80.49 MB / 346.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.005882/0.9229, allocations: 2.098 MB / 436.4 MB, free: 79.37 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003315/0.9263, allocations: 1.393 MB / 437.8 MB, free: 78.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.016e-06/0.9264, allocations: 3.844 kB / 437.8 MB, free: 78.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002212/0.9286, allocations: 0.8098 MB / 438.6 MB, free: 77.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/0.9303, allocations: 205.5 kB / 438.8 MB, free: 77.92 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005832/0.9362, allocations: 2.529 MB / 441.3 MB, free: 76.33 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.9367, allocations: 0.9492 MB / 442.3 MB, free: 75.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006749/0.9374, allocations: 91.38 kB / 442.4 MB, free: 75.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/0.9379, allocations: 289.6 kB / 442.7 MB, free: 75.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.9379, allocations: 0 / 442.7 MB, free: 75.2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06412/1.002, allocations: 22.05 MB / 464.7 MB, free: 55.29 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002166/1.002, allocations: 202 kB / 464.9 MB, free: 55.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.752/4.754, allocations: 0 / 464.9 MB, free: 55.05 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat