Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.559/2.559, allocations: 235.1 MB / 242.2 MB, free: 15.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.916e-05/1.907e-05, allocations: 0 / 299.5 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3824, allocations: 54.85 MB / 354.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1563/0.5388, allocations: 82.32 MB / 436.7 MB, free: 15.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.5391, allocations: 59.98 kB / 436.7 MB, free: 15.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01873/0.5579, allocations: 3.859 MB / 440.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.968e-06/0.5579, allocations: 4 kB / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.558, allocations: 4 kB / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001527/0.5595, allocations: 0.566 MB / 441.1 MB, free: 11.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.5596, allocations: 12.03 kB / 441.2 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.5597, allocations: 35.64 kB / 441.2 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.5601, allocations: 243.7 kB / 441.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.5602, allocations: 11.98 kB / 441.4 MB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-05/0.5603, allocations: 23.98 kB / 441.5 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004018/0.5607, allocations: 108 kB / 441.6 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005753/0.5613, allocations: 201.5 kB / 441.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5613, allocations: 0 / 441.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.5614, allocations: 7.953 kB / 441.8 MB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.5614, allocations: 4 kB / 441.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.563, allocations: 0.5202 MB / 442.3 MB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006906/0.5637, allocations: 279 kB / 442.6 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.564, allocations: 112.8 kB / 442.7 MB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.564, allocations: 7.984 kB / 442.7 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005587/0.5646, allocations: 219.2 kB / 442.9 MB, free: 9.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.278e-06/0.5646, allocations: 4 kB / 442.9 MB, free: 9.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001138/0.5658, allocations: 417.5 kB / 443.3 MB, free: 9.078 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.5659, allocations: 71.39 kB / 443.4 MB, free: 8.996 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.5662, allocations: 183 kB / 443.6 MB, free: 8.809 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.566e-05/0.5662, allocations: 37.7 kB / 443.6 MB, free: 8.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.5664, allocations: 133.2 kB / 443.7 MB, free: 8.629 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.5665, allocations: 90.88 kB / 443.8 MB, free: 8.539 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/0.5665, allocations: 4 kB / 443.8 MB, free: 8.535 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.5667, allocations: 342.8 kB / 444.2 MB, free: 8.191 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.567, allocations: 81.12 kB / 444.2 MB, free: 8.113 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003956/0.5674, allocations: 264.3 kB / 444.5 MB, free: 7.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.5677, allocations: 128.5 kB / 444.6 MB, free: 7.645 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.697e-06/0.5677, allocations: 4 kB / 444.6 MB, free: 7.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009309/0.5687, allocations: 373.8 kB / 445 MB, free: 7.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.5687, allocations: 4 kB / 445 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.5687, allocations: 8 kB / 445 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.384e-05/0.5688, allocations: 8 kB / 445 MB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.5692, allocations: 63.84 kB / 445.1 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.362e-05/0.5693, allocations: 15.92 kB / 445.1 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.5696, allocations: 35.91 kB / 445.1 MB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.717e-05/0.5696, allocations: 28 kB / 445.2 MB, free: 7.109 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002633/0.5699, allocations: 148.8 kB / 445.3 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001085/0.571, allocations: 433.4 kB / 445.7 MB, free: 6.527 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.5711, allocations: 27.7 kB / 445.7 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.783e-05/0.5712, allocations: 23.41 kB / 445.8 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.5712, allocations: 4.047 kB / 445.8 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.5712, allocations: 3.984 kB / 445.8 MB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.5713, allocations: 11.92 kB / 445.8 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/0.5735, allocations: 0.8548 MB / 446.6 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5735, allocations: 0 / 446.6 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.5737, allocations: 19.92 kB / 446.7 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.715e-06/0.5737, allocations: 0 / 446.7 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.5738, allocations: 11.98 kB / 446.7 MB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/0.5738, allocations: 4 kB / 446.7 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.5738, allocations: 3.953 kB / 446.7 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.5749, allocations: 0.5114 MB / 447.2 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.57e-05/0.575, allocations: 104.8 kB / 447.3 MB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.5751, allocations: 19.97 kB / 447.3 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004065/0.5755, allocations: 31.97 kB / 447.3 MB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.5756, allocations: 27.97 kB / 447.4 MB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.518e-05/0.5757, allocations: 27.86 kB / 447.4 MB, free: 4.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001917/0.5759, allocations: 141.6 kB / 447.5 MB, free: 4.633 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5759, allocations: 0 / 447.5 MB, free: 4.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000638/0.5766, allocations: 59.89 kB / 447.6 MB, free: 4.574 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulsStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.001557/0.5781, allocations: 1.077 MB / 448.7 MB, free: 3.465 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000826/0.579, allocations: 289.2 kB / 449 MB, free: 3.184 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.579, allocations: 0 / 449 MB, free: 3.184 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003846/0.5794, allocations: 151.8 kB / 449.1 MB, free: 3.035 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004863/0.5799, allocations: 41.33 kB / 449.1 MB, free: 2.996 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.5819, allocations: 435.9 kB / 449.6 MB, free: 2.539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/0.5824, allocations: 0.7722 MB / 450.3 MB, free: 1.738 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000168/0.5825, allocations: 39.36 kB / 450.4 MB, free: 1.699 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.5827, allocations: 83.41 kB / 450.5 MB, free: 1.621 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5828, allocations: 0 / 450.5 MB, free: 1.621 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05068/0.6334, allocations: 4.659 MB / 455.1 MB, free: 12.98 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002848/0.6338, allocations: 131.8 kB / 455.3 MB, free: 12.78 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.991, allocations: 0 / 455.3 MB, free: 12.78 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat