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.239/2.239, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.025e-05/4.028e-05, allocations: 4.938 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3879, allocations: 54.85 MB / 359.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1637/0.5517, allocations: 83 MB / 442.9 MB, free: 13.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.5519, allocations: 60.91 kB / 442.9 MB, free: 13.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01875/0.5707, allocations: 3.891 MB / 446.8 MB, free: 9.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5707, allocations: 0 / 446.8 MB, free: 9.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.5708, allocations: 4 kB / 446.8 MB, free: 9.883 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.001517/0.5723, allocations: 0.5693 MB / 447.4 MB, free: 9.262 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.5724, allocations: 8.031 kB / 447.4 MB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.143e-05/0.5725, allocations: 58.55 kB / 447.5 MB, free: 9.188 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.5725, allocations: 31.61 kB / 447.5 MB, free: 9.156 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.5729, allocations: 235.7 kB / 447.7 MB, free: 8.883 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/0.573, allocations: 15.98 kB / 447.7 MB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.053e-05/0.5731, allocations: 23.98 kB / 447.8 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005875/0.5737, allocations: 213.5 kB / 448 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.5737, allocations: 0 / 448 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.5737, allocations: 19.88 kB / 448 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.5738, allocations: 8 kB / 448 MB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003969/0.5742, allocations: 119.9 kB / 448.1 MB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.5757, allocations: 0.5587 MB / 448.7 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007472/0.5765, allocations: 304 kB / 449 MB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003216/0.5768, allocations: 124.8 kB / 449.1 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.5768, allocations: 4 kB / 449.1 MB, free: 7.445 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005704/0.5774, allocations: 232.3 kB / 449.3 MB, free: 7.207 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 3.477e-06/0.5774, allocations: 0 / 449.3 MB, free: 7.207 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001174/0.5786, allocations: 433.2 kB / 449.7 MB, free: 6.777 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.5787, allocations: 75.38 kB / 449.8 MB, free: 6.691 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003188/0.5791, allocations: 195 kB / 450 MB, free: 6.496 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.766e-05/0.5792, allocations: 45.69 kB / 450.1 MB, free: 6.445 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.5793, allocations: 129 kB / 450.2 MB, free: 6.312 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.5794, allocations: 94.86 kB / 450.3 MB, free: 6.219 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.5795, allocations: 15.94 kB / 450.3 MB, free: 6.203 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5796, allocations: 347.3 kB / 450.6 MB, free: 5.855 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.5799, allocations: 93.11 kB / 450.7 MB, free: 5.766 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004089/0.5803, allocations: 268.8 kB / 451 MB, free: 5.418 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.5807, allocations: 147.8 kB / 451.1 MB, free: 5.273 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.5807, allocations: 4 kB / 451.1 MB, free: 5.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000988/0.5817, allocations: 404.8 kB / 451.5 MB, free: 4.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.5818, allocations: 9.031 kB / 451.5 MB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.5818, allocations: 4.781 kB / 451.5 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.339e-05/0.5818, allocations: 12 kB / 451.5 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.5822, allocations: 67.84 kB / 451.6 MB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.5823, allocations: 15.92 kB / 451.6 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.5826, allocations: 47.67 kB / 451.7 MB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/0.5827, allocations: 20 kB / 451.7 MB, free: 4.695 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.0002394/0.5829, allocations: 172.8 kB / 451.9 MB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.221e-05/0.583, allocations: 27.72 kB / 451.9 MB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.481e-05/0.5831, allocations: 30.77 kB / 451.9 MB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.5831, allocations: 4 kB / 451.9 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5831, allocations: 1.5 kB / 451.9 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5832, allocations: 0 / 451.9 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.5854, allocations: 0.9319 MB / 452.9 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5854, allocations: 0 / 452.9 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.5855, allocations: 15.98 kB / 452.9 MB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.5856, allocations: 7.938 kB / 452.9 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/0.5856, allocations: 11.98 kB / 452.9 MB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.5856, allocations: 3.953 kB / 452.9 MB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5857, allocations: 0 / 452.9 MB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.5868, allocations: 0.5422 MB / 453.4 MB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.62e-05/0.5869, allocations: 100.8 kB / 453.5 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.694e-05/0.587, allocations: 23.98 kB / 453.6 MB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.5875, allocations: 35.95 kB / 453.6 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/0.5876, allocations: 31.92 kB / 453.6 MB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.098e-05/0.5876, allocations: 15.98 kB / 453.6 MB, free: 2.652 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001937/0.5878, allocations: 153.5 kB / 453.8 MB, free: 2.504 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5879, allocations: 0.9375 kB / 453.8 MB, free: 2.504 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005879/0.5885, allocations: 75.89 kB / 453.9 MB, free: 2.43 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.001492/0.59, allocations: 1.107 MB / 455 MB, free: 1.297 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008925/0.5909, allocations: 299.6 kB / 455.3 MB, free: 1.004 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.5909, allocations: 1.562 kB / 455.3 MB, free: 1.004 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004004/0.5913, allocations: 155.9 kB / 455.4 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.5918, allocations: 48.56 kB / 455.5 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.5937, allocations: 454.8 kB / 455.9 MB, free: 328 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.5941, allocations: 0.7731 MB / 456.7 MB, free: 15.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.5943, allocations: 30.97 kB / 456.7 MB, free: 15.49 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.5945, allocations: 91.39 kB / 456.8 MB, free: 15.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5945, allocations: 0 / 456.8 MB, free: 15.4 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03115/0.6256, allocations: 5.067 MB / 461.9 MB, free: 10.42 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002499/0.6259, allocations: 139.7 kB / 462 MB, free: 10.19 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.45/3.076, allocations: 0 / 462 MB, free: 10.19 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