Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.359/3.359, allocations: 343.8 MB / 355.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.378e-05/4.382e-05, allocations: 8 kB / 436.6 MB, free: 2.375 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2065, allocations: 77.73 MB / 0.5023 GB, free: 4.492 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6703/0.8769, allocations: 107.6 MB / 0.6074 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003425/0.8773, allocations: 67.97 kB / 0.6075 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.03186/0.9092, allocations: 3.42 MB / 0.6108 GB, free: 9.828 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.877e-06/0.9093, allocations: 0 / 0.6108 GB, free: 9.828 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.407e-05/0.9093, allocations: 14.23 kB / 0.6108 GB, free: 9.816 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001061/0.9104, allocations: 434.7 kB / 0.6112 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/0.9105, allocations: 8.031 kB / 0.6112 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.453e-05/0.9106, allocations: 42.56 kB / 0.6113 GB, free: 9.289 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.353e-05/0.9107, allocations: 19.8 kB / 0.6113 GB, free: 9.27 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005194/0.9112, allocations: 230.7 kB / 0.6115 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.9113, allocations: 8 kB / 0.6115 GB, free: 8.996 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.399e-05/0.9113, allocations: 12 kB / 0.6115 GB, free: 8.984 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004148/0.9118, allocations: 135.3 kB / 0.6117 GB, free: 8.832 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.9118, allocations: 0 / 0.6117 GB, free: 8.832 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.9118, allocations: 4 kB / 0.6117 GB, free: 8.828 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.9119, allocations: 0 / 0.6117 GB, free: 8.828 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002354/0.9121, allocations: 55.88 kB / 0.6117 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.914, allocations: 0.7512 MB / 0.6125 GB, free: 7.957 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.9142, allocations: 42.52 kB / 0.6125 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.628e-05/0.9143, allocations: 16.86 kB / 0.6125 GB, free: 7.887 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.9144, allocations: 8 kB / 0.6125 GB, free: 7.879 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.9147, allocations: 112.1 kB / 0.6126 GB, free: 7.746 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=11): time 3.476e-06/0.9147, allocations: 0 / 0.6126 GB, free: 7.746 MB / 0.4948 GB Notification: Performance of matching and sorting (n=11): time 0.000463/0.9152, allocations: 105.4 kB / 0.6127 GB, free: 7.637 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.9154, allocations: 140.5 kB / 0.6129 GB, free: 7.469 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.9157, allocations: 181.9 kB / 0.613 GB, free: 7.281 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.9158, allocations: 29.7 kB / 0.6131 GB, free: 7.246 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.9159, allocations: 127.8 kB / 0.6132 GB, free: 7.117 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.732e-05/0.916, allocations: 35.75 kB / 0.6132 GB, free: 7.082 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.667e-05/0.9161, allocations: 4 kB / 0.6132 GB, free: 7.078 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002034/0.9163, allocations: 326.8 kB / 0.6135 GB, free: 6.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.9164, allocations: 24.38 kB / 0.6136 GB, free: 6.723 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.9167, allocations: 133.4 kB / 0.6137 GB, free: 6.543 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.9169, allocations: 51.98 kB / 0.6137 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.9169, allocations: 0 / 0.6137 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006127/0.9176, allocations: 173.5 kB / 0.6139 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.9176, allocations: 6.656 kB / 0.6139 GB, free: 6.312 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.9176, allocations: 8 kB / 0.6139 GB, free: 6.305 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.127e-05/0.9177, allocations: 8.094 kB / 0.6139 GB, free: 6.297 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003471/0.918, allocations: 39.89 kB / 0.614 GB, free: 6.258 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.287e-05/0.9181, allocations: 8 kB / 0.614 GB, free: 6.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.9185, allocations: 35.97 kB / 0.614 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.9185, allocations: 12 kB / 0.614 GB, free: 6.203 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.9187, allocations: 116.9 kB / 0.6141 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/0.9188, allocations: 19.81 kB / 0.6141 GB, free: 6.062 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.82e-05/0.9189, allocations: 25.52 kB / 0.6142 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.9189, allocations: 0 / 0.6142 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.9189, allocations: 0 / 0.6142 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.919, allocations: 4 kB / 0.6142 GB, free: 6.031 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.9204, allocations: 0.4937 MB / 0.6147 GB, free: 5.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.9204, allocations: 0 / 0.6147 GB, free: 5.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.9208, allocations: 23.92 kB / 0.6147 GB, free: 5.457 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.423e-06/0.9208, allocations: 0 / 0.6147 GB, free: 5.457 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.9208, allocations: 8 kB / 0.6147 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.353e-06/0.9208, allocations: 7.953 kB / 0.6147 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.9209, allocations: 0 / 0.6147 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006734/0.9216, allocations: 369.2 kB / 0.615 GB, free: 5.039 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.9217, allocations: 92.92 kB / 0.6151 GB, free: 4.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.125e-05/0.9217, allocations: 0 / 0.6151 GB, free: 4.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.9222, allocations: 19.98 kB / 0.6152 GB, free: 4.91 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.516e-05/0.9223, allocations: 11.98 kB / 0.6152 GB, free: 4.898 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.9223, allocations: 7.984 kB / 0.6152 GB, free: 4.891 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002333/0.9226, allocations: 144.2 kB / 0.6153 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.82e-07/0.9226, allocations: 4 kB / 0.6153 GB, free: 4.746 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0007838/0.9234, allocations: 31.94 kB / 0.6153 GB, free: 4.715 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001166/0.9246, allocations: 1.104 MB / 0.6164 GB, free: 3.566 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003683/0.925, allocations: 83.84 kB / 0.6165 GB, free: 3.484 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.925, allocations: 0 / 0.6165 GB, free: 3.484 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.9252, allocations: 33 kB / 0.6165 GB, free: 3.453 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008643/0.9261, allocations: 67.69 kB / 0.6166 GB, free: 3.391 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.9274, allocations: 310 kB / 0.6169 GB, free: 3.039 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.9279, allocations: 0.7323 MB / 0.6176 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001604/0.928, allocations: 17.97 kB / 0.6176 GB, free: 2.266 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.9282, allocations: 47.42 kB / 0.6177 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of SimCode: time 1.082e-06/0.9282, allocations: 0 / 0.6177 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06735/0.9956, allocations: 3.533 MB / 0.6211 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003331/0.996, allocations: 170.7 kB / 0.6213 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.512/3.508, allocations: 4 kB / 0.6213 GB, free: 14.55 MB / 0.5105 GB