Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.669/2.669, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.146e-05/4.159e-05, allocations: 7.938 kB / 323.5 MB, free: 4.227 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4072, allocations: 58.84 MB / 382.3 MB, free: 10.23 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1642/0.5714, allocations: 87.92 MB / 470.2 MB, free: 4.492 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.5717, allocations: 63.97 kB / 470.3 MB, free: 4.43 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01929/0.591, allocations: 3.918 MB / 474.2 MB, free: 500 kB / 394.8 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5911, allocations: 0 / 474.2 MB, free: 500 kB / 394.8 MB Notification: Performance of Transformations before backend: time 1.938e-05/0.5911, allocations: 4 kB / 474.2 MB, free: 496 kB / 394.8 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.001628/0.5927, allocations: 0.5654 MB / 474.8 MB, free: 15.88 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.5928, allocations: 12.03 kB / 474.8 MB, free: 15.86 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.5929, allocations: 50.53 kB / 474.8 MB, free: 15.8 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.593, allocations: 35.58 kB / 474.9 MB, free: 15.77 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.5935, allocations: 247.8 kB / 475.1 MB, free: 15.48 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.5935, allocations: 16 kB / 475.1 MB, free: 15.47 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/0.5936, allocations: 23.98 kB / 475.1 MB, free: 15.45 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006353/0.5943, allocations: 217.5 kB / 475.4 MB, free: 15.23 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.5943, allocations: 7.938 kB / 475.4 MB, free: 15.22 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.5943, allocations: 7.984 kB / 475.4 MB, free: 15.21 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.5944, allocations: 11.98 kB / 475.4 MB, free: 15.2 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003935/0.5948, allocations: 116 kB / 475.5 MB, free: 15.09 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.5964, allocations: 0.5587 MB / 476.1 MB, free: 14.48 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007614/0.5972, allocations: 298.9 kB / 476.3 MB, free: 14.18 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003375/0.5975, allocations: 125.9 kB / 476.5 MB, free: 14.05 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.244e-05/0.5976, allocations: 8 kB / 476.5 MB, free: 14.04 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006203/0.5982, allocations: 231.5 kB / 476.7 MB, free: 13.8 MB / 410.8 MB Notification: Performance of pre-optimization done (n=43): time 3.817e-06/0.5983, allocations: 0 / 476.7 MB, free: 13.8 MB / 410.8 MB Notification: Performance of matching and sorting (n=43): time 0.001204/0.5995, allocations: 441.1 kB / 477.1 MB, free: 13.37 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.459e-05/0.5996, allocations: 79.34 kB / 477.2 MB, free: 13.28 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.5999, allocations: 187 kB / 477.4 MB, free: 13.09 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 6.623e-05/0.6, allocations: 41.7 kB / 477.4 MB, free: 13.04 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.6001, allocations: 129 kB / 477.6 MB, free: 12.91 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.6003, allocations: 106.8 kB / 477.7 MB, free: 12.8 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.717e-05/0.6003, allocations: 8 kB / 477.7 MB, free: 12.8 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.6005, allocations: 343.2 kB / 478 MB, free: 12.45 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.6008, allocations: 93.11 kB / 478.1 MB, free: 12.36 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004371/0.6012, allocations: 280.4 kB / 478.4 MB, free: 12 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.6016, allocations: 139.8 kB / 478.5 MB, free: 11.86 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.6016, allocations: 3.938 kB / 478.5 MB, free: 11.86 MB / 410.8 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001034/0.6027, allocations: 416.7 kB / 478.9 MB, free: 11.45 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.6027, allocations: 4.781 kB / 478.9 MB, free: 11.44 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.6028, allocations: 8 kB / 478.9 MB, free: 11.43 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/0.6028, allocations: 12 kB / 478.9 MB, free: 11.42 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.6032, allocations: 63.84 kB / 479 MB, free: 11.36 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.477e-05/0.6033, allocations: 11.94 kB / 479 MB, free: 11.35 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.6036, allocations: 43.67 kB / 479.1 MB, free: 11.3 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.378e-05/0.6037, allocations: 31.94 kB / 479.1 MB, free: 11.27 MB / 410.8 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.pulseStart,booleanPulse.pulseStart,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.0002621/0.6039, allocations: 176.8 kB / 479.3 MB, free: 11.09 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-05/0.604, allocations: 27.67 kB / 479.3 MB, free: 11.07 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.347e-05/0.6041, allocations: 30.77 kB / 479.3 MB, free: 11.04 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.6041, allocations: 4 kB / 479.3 MB, free: 11.04 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.6042, allocations: 0 / 479.3 MB, free: 11.04 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.6042, allocations: 0 / 479.3 MB, free: 11.04 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.6065, allocations: 0.9207 MB / 480.2 MB, free: 10.06 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.6065, allocations: 0 / 480.2 MB, free: 10.06 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.6067, allocations: 12 kB / 480.3 MB, free: 10.05 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/0.6067, allocations: 4 kB / 480.3 MB, free: 10.04 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/0.6068, allocations: 11.97 kB / 480.3 MB, free: 10.03 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.6068, allocations: 4 kB / 480.3 MB, free: 10.03 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6068, allocations: 4 kB / 480.3 MB, free: 10.02 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.6079, allocations: 0.5425 MB / 480.8 MB, free: 9.465 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.091e-05/0.608, allocations: 96.83 kB / 480.9 MB, free: 9.352 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.753e-05/0.6082, allocations: 19.97 kB / 480.9 MB, free: 9.332 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.6086, allocations: 39.97 kB / 481 MB, free: 9.293 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.812e-05/0.6087, allocations: 27.97 kB / 481 MB, free: 9.266 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-05/0.6088, allocations: 15.97 kB / 481 MB, free: 9.25 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.0002085/0.609, allocations: 149.5 kB / 481.2 MB, free: 9.105 MB / 410.8 MB Notification: Performance of sort global known variables: time 5.71e-07/0.609, allocations: 0 / 481.2 MB, free: 9.105 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.000596/0.6096, allocations: 75.84 kB / 481.2 MB, free: 9.031 MB / 410.8 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.pulseStart,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.001617/0.6112, allocations: 1.106 MB / 482.3 MB, free: 7.898 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.000881/0.6121, allocations: 305.6 kB / 482.6 MB, free: 7.602 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6122, allocations: 0 / 482.6 MB, free: 7.602 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.6126, allocations: 155.8 kB / 482.8 MB, free: 7.449 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.6131, allocations: 44.06 kB / 482.8 MB, free: 7.406 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.6151, allocations: 473.1 kB / 483.3 MB, free: 6.902 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.6156, allocations: 0.7685 MB / 484.1 MB, free: 6.109 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.6157, allocations: 34.95 kB / 484.1 MB, free: 6.078 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.6159, allocations: 83.41 kB / 484.2 MB, free: 5.996 MB / 410.8 MB Notification: Performance of SimCode: time 1.302e-06/0.6159, allocations: 4 kB / 484.2 MB, free: 5.992 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0305/0.6465, allocations: 5.073 MB / 489.3 MB, free: 1.008 MB / 410.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003386/0.6469, allocations: 135.8 kB / 489.4 MB, free: 0.7773 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.42/3.067, allocations: 0 / 489.4 MB, free: 0.7773 MB / 410.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat