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.169/2.169, allocations: 235 MB / 247.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.623e-05/3.639e-05, allocations: 4.938 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3749, allocations: 54.85 MB / 359.9 MB, free: 3.152 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.5222, allocations: 82.99 MB / 442.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.5225, allocations: 59.95 kB / 442.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01782/0.5404, allocations: 3.885 MB / 446.8 MB, free: 9.988 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.5404, allocations: 3.938 kB / 446.8 MB, free: 9.984 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.942e-05/0.5404, allocations: 8 kB / 446.8 MB, free: 9.977 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.001462/0.5419, allocations: 0.5614 MB / 447.4 MB, free: 9.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.5419, allocations: 12.03 kB / 447.4 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.545e-05/0.542, allocations: 54.53 kB / 447.4 MB, free: 9.289 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.68e-05/0.5421, allocations: 35.61 kB / 447.5 MB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.5425, allocations: 239.7 kB / 447.7 MB, free: 8.977 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.5426, allocations: 12 kB / 447.7 MB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.582e-05/0.5427, allocations: 23.98 kB / 447.7 MB, free: 8.941 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.5433, allocations: 217.5 kB / 447.9 MB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.5433, allocations: 0 / 447.9 MB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.068e-05/0.5433, allocations: 11.95 kB / 447.9 MB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.5434, allocations: 8 kB / 448 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/0.5438, allocations: 119.9 kB / 448.1 MB, free: 8.586 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.5452, allocations: 0.5587 MB / 448.6 MB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000738/0.5459, allocations: 306 kB / 448.9 MB, free: 7.676 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003192/0.5463, allocations: 125.6 kB / 449.1 MB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.004e-05/0.5463, allocations: 11.98 kB / 449.1 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005572/0.5469, allocations: 235.4 kB / 449.3 MB, free: 7.297 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.745e-06/0.5469, allocations: 0 / 449.3 MB, free: 7.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001136/0.5481, allocations: 441.1 kB / 449.7 MB, free: 6.859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.5482, allocations: 75.34 kB / 449.8 MB, free: 6.773 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.5484, allocations: 191 kB / 450 MB, free: 6.582 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.69e-05/0.5485, allocations: 41.7 kB / 450 MB, free: 6.535 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.5486, allocations: 134 kB / 450.2 MB, free: 6.398 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.5487, allocations: 98.86 kB / 450.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.5488, allocations: 8 kB / 450.3 MB, free: 6.293 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.5489, allocations: 346.8 kB / 450.6 MB, free: 5.945 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.5492, allocations: 93.11 kB / 450.7 MB, free: 5.855 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004217/0.5497, allocations: 281.9 kB / 451 MB, free: 5.492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003539/0.55, allocations: 139.9 kB / 451.1 MB, free: 5.355 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.5501, allocations: 4 kB / 451.1 MB, free: 5.352 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00097/0.551, allocations: 428.6 kB / 451.5 MB, free: 4.926 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.5511, allocations: 8 kB / 451.5 MB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.5511, allocations: 4.781 kB / 451.5 MB, free: 4.914 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.5511, allocations: 12.84 kB / 451.5 MB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/0.5515, allocations: 71.78 kB / 451.6 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.302e-05/0.5516, allocations: 12 kB / 451.6 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.5519, allocations: 43.67 kB / 451.7 MB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.5519, allocations: 24 kB / 451.7 MB, free: 4.754 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.0002396/0.5522, allocations: 168.7 kB / 451.9 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.13e-05/0.5523, allocations: 31.72 kB / 451.9 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.42e-05/0.5524, allocations: 30.7 kB / 451.9 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.5524, allocations: 4 kB / 451.9 MB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.5524, allocations: 0.8438 kB / 451.9 MB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.5524, allocations: 3.984 kB / 451.9 MB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.5547, allocations: 0.9287 MB / 452.9 MB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.5547, allocations: 0 / 452.9 MB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.5548, allocations: 19.92 kB / 452.9 MB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/0.5549, allocations: 0 / 452.9 MB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.5549, allocations: 15.92 kB / 452.9 MB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.125e-06/0.5549, allocations: 3.953 kB / 452.9 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5549, allocations: 4 kB / 452.9 MB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.5561, allocations: 0.5311 MB / 453.4 MB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.721e-05/0.5562, allocations: 104.8 kB / 453.5 MB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.433e-05/0.5563, allocations: 19.98 kB / 453.6 MB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.5567, allocations: 35.97 kB / 453.6 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-05/0.5569, allocations: 31.91 kB / 453.6 MB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.164e-05/0.5569, allocations: 19.98 kB / 453.6 MB, free: 2.715 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001901/0.5571, allocations: 145.5 kB / 453.8 MB, free: 2.574 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5571, allocations: 0 / 453.8 MB, free: 2.574 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005747/0.5577, allocations: 75.91 kB / 453.9 MB, free: 2.5 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.001589/0.5593, allocations: 1.108 MB / 455 MB, free: 1.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008577/0.5602, allocations: 316.8 kB / 455.3 MB, free: 1.059 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5602, allocations: 0 / 455.3 MB, free: 1.059 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004083/0.5606, allocations: 160.5 kB / 455.4 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.5611, allocations: 44.3 kB / 455.5 MB, free: 0.8594 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.5629, allocations: 468.9 kB / 455.9 MB, free: 372 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.5634, allocations: 0.7686 MB / 456.7 MB, free: 15.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.5636, allocations: 35.05 kB / 456.7 MB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.5638, allocations: 87.41 kB / 456.8 MB, free: 15.45 MB / 394.7 MB Notification: Performance of SimCode: time 8.21e-07/0.5638, allocations: 4 kB / 456.8 MB, free: 15.45 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.5913, allocations: 5.07 MB / 461.9 MB, free: 10.46 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002983/0.5917, allocations: 140.5 kB / 462 MB, free: 10.24 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.389/2.98, allocations: 4.062 kB / 462 MB, free: 10.23 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