Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.359/2.359, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.552e-05/4.569e-05, allocations: 3.938 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1474, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.37/11.51, allocations: 3.553 GB / 3.954 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003441/11.51, allocations: 87.08 kB / 3.954 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 8.854/20.37, allocations: 1.406 GB / 5.36 GB, free: 8.219 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.635e-06/20.37, allocations: 0 / 5.36 GB, free: 8.219 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0003335/20.37, allocations: 58.83 kB / 5.36 GB, free: 8.164 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.03754/20.41, allocations: 6.811 MB / 5.367 GB, free: 1.258 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 8.623e-05/20.41, allocations: 13.16 kB / 5.367 GB, free: 1.246 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002161/20.41, allocations: 266.1 kB / 5.367 GB, free: 0.9766 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003805/20.41, allocations: 281 kB / 5.367 GB, free: 0.6992 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6246/21.04, allocations: 1.427 MB / 5.368 GB, free: 41.12 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003473/21.04, allocations: 141.5 kB / 5.369 GB, free: 41.11 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001196/21.04, allocations: 179.8 kB / 5.369 GB, free: 41.11 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/21.05, allocations: 2.877 MB / 5.372 GB, free: 40.83 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.751e-05/21.05, allocations: 2.562 kB / 5.372 GB, free: 40.83 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005468/21.05, allocations: 84.64 kB / 5.372 GB, free: 40.83 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004034/21.05, allocations: 159.5 kB / 5.372 GB, free: 40.83 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/21.06, allocations: 3.078 MB / 5.375 GB, free: 40.82 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04483/21.11, allocations: 11.29 MB / 5.386 GB, free: 36.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/21.12, allocations: 2.228 MB / 5.388 GB, free: 36.4 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004588/21.12, allocations: 0.9617 MB / 5.389 GB, free: 36.39 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005123/21.13, allocations: 3.401 MB / 5.392 GB, free: 32.73 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001117/21.13, allocations: 66.94 kB / 5.392 GB, free: 32.69 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002825/21.13, allocations: 277.6 kB / 5.393 GB, free: 32.63 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=155): time 7.354e-06/21.13, allocations: 0 / 5.393 GB, free: 32.63 MB / 0.6198 GB Notification: Performance of matching and sorting (n=155): time 0.007153/21.14, allocations: 2.218 MB / 5.395 GB, free: 32.45 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.492e-05/21.14, allocations: 201.9 kB / 5.395 GB, free: 32.22 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003755/21.14, allocations: 1.669 MB / 5.397 GB, free: 32 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0007727/21.14, allocations: 65.17 kB / 5.397 GB, free: 31.97 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.00108/21.15, allocations: 0.9028 MB / 5.398 GB, free: 31.69 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000996/21.15, allocations: 0.5366 MB / 5.398 GB, free: 31.42 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003092/21.15, allocations: 37.88 kB / 5.398 GB, free: 31.42 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001578/21.15, allocations: 382 kB / 5.398 GB, free: 31.12 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002931/21.15, allocations: 0.9898 MB / 5.399 GB, free: 31.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003419/21.15, allocations: 1.371 MB / 5.401 GB, free: 30.71 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003516/21.16, allocations: 1.331 MB / 5.402 GB, free: 30.54 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.712e-05/21.16, allocations: 2.781 kB / 5.402 GB, free: 30.54 MB / 0.6198 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.009456/21.17, allocations: 3.093 MB / 5.405 GB, free: 30.21 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001001/21.17, allocations: 4.119 MB / 5.409 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.117e-05/21.17, allocations: 10.41 kB / 5.409 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006014/21.17, allocations: 0.6631 MB / 5.41 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004292/21.18, allocations: 446.7 kB / 5.41 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00254/21.18, allocations: 1.627 MB / 5.412 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004654/21.18, allocations: 145.7 kB / 5.412 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006931/21.19, allocations: 123 kB / 5.412 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/21.19, allocations: 4.562 kB / 5.412 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008242/21.19, allocations: 2.763 MB / 5.415 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-05/21.19, allocations: 14.69 kB / 5.415 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002058/21.2, allocations: 307.6 kB / 5.415 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004661/21.2, allocations: 0.492 MB / 5.416 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/21.2, allocations: 1.316 MB / 5.417 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004396/21.21, allocations: 134.1 kB / 5.417 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000995/21.21, allocations: 126.9 kB / 5.417 GB, free: 23.55 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001194/21.21, allocations: 224.4 kB / 5.417 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008736/21.21, allocations: 219.1 kB / 5.418 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/21.22, allocations: 3.692 MB / 5.421 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.068e-05/21.22, allocations: 23.53 kB / 5.421 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/21.22, allocations: 0 / 5.421 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.698e-05/21.22, allocations: 8.859 kB / 5.421 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/21.24, allocations: 5.715 MB / 5.427 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/21.24, allocations: 7.406 kB / 5.427 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002879/21.24, allocations: 302.3 kB / 5.427 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005452/21.25, allocations: 0.6265 MB / 5.428 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006641/21.25, allocations: 59.69 kB / 5.428 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/21.25, allocations: 1.613 MB / 5.429 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/21.25, allocations: 11.28 kB / 5.429 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008079/21.26, allocations: 3.083 MB / 5.432 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/21.26, allocations: 364.8 kB / 5.433 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001282/21.26, allocations: 44.31 kB / 5.433 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003925/21.27, allocations: 125.8 kB / 5.433 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005751/21.27, allocations: 136.7 kB / 5.433 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004426/21.27, allocations: 106 kB / 5.433 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.003546/21.27, allocations: 1.401 MB / 5.434 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.52e-07/21.27, allocations: 0 / 5.434 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01383/21.28, allocations: 2.844 MB / 5.437 GB, free: 19.55 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0221/21.31, allocations: 8.73 MB / 5.446 GB, free: 16.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0117/21.32, allocations: 4.265 MB / 5.45 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.088e-05/21.32, allocations: 3.672 kB / 5.45 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003129/21.32, allocations: 1.082 MB / 5.451 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01165/21.33, allocations: 1.213 MB / 5.452 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01673/21.35, allocations: 4.545 MB / 5.457 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/21.35, allocations: 1.659 MB / 5.458 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.009113/21.36, allocations: 1.44 MB / 5.46 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002576/21.36, allocations: 0.8397 MB / 5.46 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of SimCode: time 1.713e-06/21.36, allocations: 0.5312 kB / 5.46 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3655/21.73, allocations: 132.6 MB / 5.59 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003197/21.73, allocations: 237.3 kB / 5.59 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/31.93, allocations: 0 / 5.59 GB, free: 11.3 MB / 0.6511 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat