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.981/2.981, allocations: 235.2 MB / 242.3 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.732e-05/2.748e-05, allocations: 0 / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.438, allocations: 54.86 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2038/0.6418, allocations: 82.32 MB / 436.7 MB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.6421, allocations: 59.97 kB / 436.8 MB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02304/0.6652, allocations: 3.865 MB / 440.7 MB, free: 8.789 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.6652, allocations: 0 / 440.7 MB, free: 8.789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.6653, allocations: 4 kB / 440.7 MB, free: 8.785 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.001867/0.6671, allocations: 0.5743 MB / 441.2 MB, free: 8.164 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.6672, allocations: 12.03 kB / 441.2 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.6673, allocations: 46.53 kB / 441.3 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.6674, allocations: 27.72 kB / 441.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004508/0.6679, allocations: 239.6 kB / 441.6 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.668, allocations: 15.98 kB / 441.6 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-05/0.668, allocations: 15.98 kB / 441.6 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004908/0.6685, allocations: 119.9 kB / 441.7 MB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006268/0.6692, allocations: 205.4 kB / 441.9 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.6692, allocations: 7.938 kB / 441.9 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.225e-05/0.6693, allocations: 224 / 441.9 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.6693, allocations: 4 kB / 441.9 MB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.6711, allocations: 0.5202 MB / 442.4 MB, free: 6.867 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008173/0.6719, allocations: 289.3 kB / 442.7 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.6723, allocations: 108.8 kB / 442.8 MB, free: 6.469 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.445e-05/0.6724, allocations: 4 kB / 442.8 MB, free: 6.465 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006537/0.673, allocations: 215.2 kB / 443 MB, free: 6.242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.448e-06/0.6731, allocations: 0 / 443 MB, free: 6.242 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001336/0.6744, allocations: 425.5 kB / 443.5 MB, free: 5.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.405e-05/0.6745, allocations: 79.31 kB / 443.5 MB, free: 5.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.6748, allocations: 179 kB / 443.7 MB, free: 5.547 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.018e-05/0.6749, allocations: 37.7 kB / 443.7 MB, free: 5.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.6751, allocations: 129.3 kB / 443.9 MB, free: 5.371 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.6752, allocations: 90.86 kB / 444 MB, free: 5.281 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.6753, allocations: 4 kB / 444 MB, free: 5.277 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.6755, allocations: 342.8 kB / 444.3 MB, free: 4.934 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002797/0.6758, allocations: 85.12 kB / 444.4 MB, free: 4.852 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004927/0.6763, allocations: 260.8 kB / 444.6 MB, free: 4.516 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.6767, allocations: 131.8 kB / 444.8 MB, free: 4.387 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/0.6767, allocations: 7.953 kB / 444.8 MB, free: 4.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001096/0.6778, allocations: 364.9 kB / 445.1 MB, free: 4.016 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.6779, allocations: 8 kB / 445.1 MB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.6779, allocations: 8 kB / 445.1 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.267e-05/0.6779, allocations: 8 kB / 445.2 MB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004686/0.6784, allocations: 68.47 kB / 445.2 MB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.432e-05/0.6785, allocations: 19.92 kB / 445.2 MB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/0.6789, allocations: 31.69 kB / 445.3 MB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.944e-05/0.6789, allocations: 23.98 kB / 445.3 MB, free: 3.852 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.0002659/0.6792, allocations: 158.7 kB / 445.4 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.6793, allocations: 31.67 kB / 445.5 MB, free: 3.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.6794, allocations: 27.39 kB / 445.5 MB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.6795, allocations: 12 kB / 445.5 MB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.6795, allocations: 0 / 445.5 MB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.6795, allocations: 4 kB / 445.5 MB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.6822, allocations: 0.8545 MB / 446.4 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.6822, allocations: 0 / 446.4 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.6824, allocations: 19.92 kB / 446.4 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.439e-05/0.6824, allocations: 4 kB / 446.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-05/0.6825, allocations: 7.984 kB / 446.4 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.6825, allocations: 0 / 446.4 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/0.6825, allocations: 7.969 kB / 446.4 MB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.6839, allocations: 0.5265 MB / 446.9 MB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.684, allocations: 100.8 kB / 447 MB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.6841, allocations: 15.98 kB / 447.1 MB, free: 2.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005477/0.6847, allocations: 31.97 kB / 447.1 MB, free: 1.977 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.6848, allocations: 27.95 kB / 447.1 MB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.086e-05/0.6849, allocations: 23.98 kB / 447.1 MB, free: 1.926 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002184/0.6851, allocations: 137.9 kB / 447.3 MB, free: 1.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6851, allocations: 0 / 447.3 MB, free: 1.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006822/0.6858, allocations: 56 kB / 447.3 MB, free: 1.738 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.001784/0.6876, allocations: 1.088 MB / 448.4 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009762/0.6886, allocations: 287.6 kB / 448.7 MB, free: 344 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.6887, allocations: 0 / 448.7 MB, free: 344 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004547/0.6891, allocations: 146.2 kB / 448.8 MB, free: 200 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.6898, allocations: 39.78 kB / 448.9 MB, free: 160 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.6922, allocations: 432.3 kB / 449.3 MB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.6928, allocations: 0.7766 MB / 450.1 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002221/0.6931, allocations: 31.28 kB / 450.1 MB, free: 14.86 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.6933, allocations: 87.39 kB / 450.2 MB, free: 14.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.383e-06/0.6933, allocations: 0 / 450.2 MB, free: 14.78 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07459/0.7679, allocations: 4.796 MB / 455 MB, free: 10.02 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002916/0.7683, allocations: 123.9 kB / 455.1 MB, free: 9.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.253/4.022, allocations: 3.938 kB / 455.1 MB, free: 9.816 MB / 394.7 MB "" Variables in the reference:time,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.tSample,firstOrderHold.uSample,sampler.firstTrigger,sampler.y,stateSpace.firstTrigger,stateSpace.x[1],stateSpace.x[2],stateSpace.y[1],transferFunction.firstTrigger,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],transferFunction.y,triggeredMax.y,triggeredSampler.y,unitDelay.firstTrigger,unitDelay.u,unitDelay.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample Variables in the result:_D_whenCondition1,_D_whenCondition2,_D_whenCondition3,_D_whenCondition4,_D_whenCondition5,_D_whenCondition6,_D_whenCondition7,_D_whenCondition8,booleanPulse.Twidth,booleanPulse.period,booleanPulse.pulsStart,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.samplePeriod,firstOrderHold.sampleTrigger,firstOrderHold.startTime,firstOrderHold.tSample,firstOrderHold.u,firstOrderHold.uSample,firstOrderHold.y,samplePeriod,sampler.firstTrigger,sampler.samplePeriod,sampler.sampleTrigger,sampler.startTime,sampler.u,sampler.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,stateSpace.A[1,1],stateSpace.A[1,2],stateSpace.A[2,1],stateSpace.A[2,2],stateSpace.B[1,1],stateSpace.B[2,1],stateSpace.C[1,1],stateSpace.C[1,2],stateSpace.D[1,1],stateSpace.firstTrigger,stateSpace.nin,stateSpace.nout,stateSpace.samplePeriod,stateSpace.sampleTrigger,stateSpace.startTime,stateSpace.u[1],stateSpace.x[1],stateSpace.x[2],stateSpace.y[1],time,transferFunction.a[1],transferFunction.a[2],transferFunction.b[1],transferFunction.firstTrigger,transferFunction.na,transferFunction.nb,transferFunction.samplePeriod,transferFunction.sampleTrigger,transferFunction.startTime,transferFunction.u,transferFunction.x1,transferFunction.x[1],transferFunction.xext[1],transferFunction.xext[2],transferFunction.y,triggeredMax.trigger,triggeredMax.u,triggeredMax.y,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,unitDelay.firstTrigger,unitDelay.samplePeriod,unitDelay.sampleTrigger,unitDelay.startTime,unitDelay.u,unitDelay.y,unitDelay.y_start,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.sampleTrigger,zeroOrderHold.startTime,zeroOrderHold.u,zeroOrderHold.y,zeroOrderHold.ySample