Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_Discrete",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.755/2.755, allocations: 235.1 MB / 242.3 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.929e-05/2.933e-05, allocations: 4 kB / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3976, allocations: 54.85 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.174/0.5717, allocations: 82.32 MB / 436.8 MB, free: 12.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.572, allocations: 63.97 kB / 436.8 MB, free: 12.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02431/0.5963, allocations: 3.857 MB / 440.7 MB, free: 8.828 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5964, allocations: 0 / 440.7 MB, free: 8.828 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.078e-05/0.5964, allocations: 8 kB / 440.7 MB, free: 8.82 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.002003/0.5985, allocations: 0.5661 MB / 441.2 MB, free: 8.207 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.5985, allocations: 12.03 kB / 441.3 MB, free: 8.195 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.5987, allocations: 31.72 kB / 441.3 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/0.5993, allocations: 239.6 kB / 441.5 MB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.5993, allocations: 12 kB / 441.5 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.44e-05/0.5994, allocations: 19.98 kB / 441.6 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000491/0.5999, allocations: 112 kB / 441.7 MB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006458/0.6006, allocations: 205.4 kB / 441.9 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.6006, allocations: 0 / 441.9 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/0.6007, allocations: 7.938 kB / 441.9 MB, free: 7.531 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.6007, allocations: 4 kB / 441.9 MB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.6027, allocations: 0.5241 MB / 442.4 MB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008925/0.6036, allocations: 287.4 kB / 442.7 MB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003964/0.6041, allocations: 112.8 kB / 442.8 MB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.6041, allocations: 7.984 kB / 442.8 MB, free: 6.559 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006805/0.6048, allocations: 219.2 kB / 443 MB, free: 6.332 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.98e-06/0.6049, allocations: 0 / 443 MB, free: 6.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001405/0.6063, allocations: 417.5 kB / 443.4 MB, free: 5.918 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/0.6064, allocations: 75.38 kB / 443.5 MB, free: 5.832 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.6068, allocations: 179 kB / 443.7 MB, free: 5.648 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.549e-05/0.6069, allocations: 41.69 kB / 443.7 MB, free: 5.602 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.607, allocations: 129.3 kB / 443.8 MB, free: 5.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.6072, allocations: 90.86 kB / 443.9 MB, free: 5.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.6072, allocations: 4 kB / 443.9 MB, free: 5.375 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.6074, allocations: 346.8 kB / 444.3 MB, free: 5.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.6077, allocations: 85.05 kB / 444.3 MB, free: 4.945 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004653/0.6082, allocations: 256.4 kB / 444.6 MB, free: 4.613 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.6087, allocations: 131.8 kB / 444.7 MB, free: 4.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.6087, allocations: 7.938 kB / 444.7 MB, free: 4.477 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001158/0.6099, allocations: 373.4 kB / 445.1 MB, free: 4.105 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.709e-05/0.6099, allocations: 12.12 kB / 445.1 MB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.61, allocations: 4 kB / 445.1 MB, free: 4.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.879e-05/0.61, allocations: 12 kB / 445.1 MB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.6105, allocations: 59.84 kB / 445.2 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.08e-05/0.6105, allocations: 11.94 kB / 445.2 MB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003938/0.6109, allocations: 35.67 kB / 445.2 MB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.589e-05/0.611, allocations: 24 kB / 445.3 MB, free: 3.949 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.0003266/0.6114, allocations: 156.8 kB / 445.4 MB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001304/0.6127, allocations: 425.4 kB / 445.8 MB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.111e-05/0.6128, allocations: 23.72 kB / 445.8 MB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.6129, allocations: 31.39 kB / 445.9 MB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.613, allocations: 4 kB / 445.9 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.613, allocations: 0 / 445.9 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.016e-06/0.613, allocations: 0 / 445.9 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002716/0.6157, allocations: 0.858 MB / 446.7 MB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/0.6158, allocations: 0 / 446.7 MB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.616, allocations: 12 kB / 446.8 MB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/0.616, allocations: 4 kB / 446.8 MB, free: 2.395 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.6161, allocations: 7.984 kB / 446.8 MB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.126e-05/0.6161, allocations: 7.984 kB / 446.8 MB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.405e-06/0.6161, allocations: 3.953 kB / 446.8 MB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.6175, allocations: 0.5114 MB / 447.3 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.6176, allocations: 104.8 kB / 447.4 MB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.6178, allocations: 15.98 kB / 447.4 MB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005394/0.6183, allocations: 43.91 kB / 447.4 MB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.6185, allocations: 27.95 kB / 447.5 MB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-05/0.6186, allocations: 23.94 kB / 447.5 MB, free: 1.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002324/0.6188, allocations: 137.9 kB / 447.6 MB, free: 1.484 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.6188, allocations: 0 / 447.6 MB, free: 1.484 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007959/0.6196, allocations: 59.91 kB / 447.7 MB, free: 1.426 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.001841/0.6215, allocations: 1.092 MB / 448.8 MB, free: 308 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009757/0.6225, allocations: 281.2 kB / 449.1 MB, free: 28 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.6226, allocations: 4.062 kB / 449.1 MB, free: 24 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005532/0.6231, allocations: 155.8 kB / 449.2 MB, free: 15.87 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006143/0.6238, allocations: 32.34 kB / 449.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.6262, allocations: 435.9 kB / 449.7 MB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000522/0.6268, allocations: 0.7728 MB / 450.4 MB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002529/0.6271, allocations: 43.27 kB / 450.5 MB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.6273, allocations: 83.41 kB / 450.6 MB, free: 14.46 MB / 394.7 MB Notification: Performance of SimCode: time 1.493e-06/0.6273, allocations: 0 / 450.6 MB, free: 14.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05142/0.6788, allocations: 4.655 MB / 455.2 MB, free: 9.836 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003698/0.6792, allocations: 128.2 kB / 455.3 MB, free: 9.637 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.803/3.483, allocations: 0 / 455.3 MB, free: 9.637 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat