Running command: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.509/2.509, allocations: 237.8 MB / 250.4 MB, free: 8.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.067e-05/4.078e-05, allocations: 4 kB / 306.7 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 53.27 MB / 360 MB, free: 5.504 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4646/0.5838, allocations: 84.65 MB / 444.6 MB, free: 5.941 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/0.5841, allocations: 75.95 kB / 444.7 MB, free: 5.867 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03981/0.624, allocations: 8.216 MB / 452.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.624, allocations: 4 kB / 452.9 MB, free: 13.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.19e-05/0.6241, allocations: 8 kB / 452.9 MB, free: 13.64 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg getInteger.pkgIn.pkg = getString.pkgOut[1].pkg getString.pkgIn.pkg = unpackInt.pkgOut[1].pkg addString.pkgIn.pkg = packInt.pkgOut[1].pkg addInteger.pkgIn.pkg = addString.pkgOut[1].pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg getString.pkgOut[1].pkg = getString.pkgIn.pkg addString.pkgOut[1].pkg = addString.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002312/0.6264, allocations: 0.9644 MB / 453.9 MB, free: 12.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.6265, allocations: 8.031 kB / 453.9 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.6267, allocations: 74.52 kB / 454 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.6268, allocations: 43.48 kB / 454 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006788/0.6275, allocations: 306.1 kB / 454.3 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.6276, allocations: 20.78 kB / 454.3 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.034e-05/0.6277, allocations: 39.98 kB / 454.4 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.6288, allocations: 385.8 kB / 454.7 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.6289, allocations: 0 / 454.7 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/0.6289, allocations: 12 kB / 454.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.629, allocations: 8 kB / 454.8 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006771/0.6296, allocations: 209 kB / 455 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.6321, allocations: 1.01 MB / 456 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006161/0.6327, allocations: 239.8 kB / 456.2 MB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.633, allocations: 106.8 kB / 456.3 MB, free: 9.996 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.6333, allocations: 93.03 kB / 456.4 MB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000469/0.6337, allocations: 181.4 kB / 456.6 MB, free: 9.688 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 3.686e-06/0.6338, allocations: 0 / 456.6 MB, free: 9.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001048/0.6348, allocations: 345.3 kB / 456.9 MB, free: 9.344 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.635, allocations: 118.8 kB / 457 MB, free: 9.203 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.6353, allocations: 170 kB / 457.2 MB, free: 9.035 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.738e-05/0.6353, allocations: 41.7 kB / 457.2 MB, free: 8.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.6355, allocations: 192.3 kB / 457.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.495e-05/0.6356, allocations: 63.3 kB / 457.5 MB, free: 8.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.6357, allocations: 11.94 kB / 457.5 MB, free: 8.719 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.6358, allocations: 330.8 kB / 457.8 MB, free: 8.387 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.6361, allocations: 80.72 kB / 457.9 MB, free: 8.309 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003855/0.6365, allocations: 220.2 kB / 458.1 MB, free: 8.027 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.6369, allocations: 127.8 kB / 458.2 MB, free: 7.902 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-06/0.6369, allocations: 4 kB / 458.2 MB, free: 7.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009301/0.6379, allocations: 337.4 kB / 458.6 MB, free: 7.562 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.6379, allocations: 7.984 kB / 458.6 MB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.638, allocations: 8 kB / 458.6 MB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.144e-05/0.638, allocations: 8 kB / 458.6 MB, free: 7.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004035/0.6384, allocations: 59.84 kB / 458.7 MB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/0.6385, allocations: 4 kB / 458.7 MB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002312/0.6387, allocations: 23.75 kB / 458.7 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.6388, allocations: 20 kB / 458.7 MB, free: 7.434 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: getString.data:DISCRETE() "Output string (read from package)" type: String Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 44 ($PRE.getString.dummy,getString.dummy,$PRE.getString.pkgOut[1].dummy,getString.pkgOut[1].dummy,$PRE.addString.pkgOut[1].dummy,addString.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.unpackInt.dummy,unpackInt.dummy,$PRE.unpackInt.y,unpackInt.y,$PRE.unpackInt.pkgOut[1].dummy,unpackInt.pkgOut[1].dummy,$PRE.resetPointer.dummy,resetPointer.dummy,$PRE.resetPointer.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,integerExpression.y,$whenCondition1,addInteger.pkgOut[1].trigger,addInteger.u[1],$PRE.getString.data,getString.data,findString.y,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getString.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addString.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.000282/0.6391, allocations: 158.2 kB / 458.9 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.395e-05/0.6391, allocations: 23.77 kB / 458.9 MB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007937/0.6399, allocations: 260.6 kB / 459.1 MB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.64, allocations: 4 kB / 459.1 MB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.64, allocations: 3.938 kB / 459.1 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.64, allocations: 3.984 kB / 459.1 MB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.6416, allocations: 0.7401 MB / 459.9 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.6417, allocations: 0 / 459.9 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.794e-05/0.6418, allocations: 8 kB / 459.9 MB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/0.6418, allocations: 96 / 459.9 MB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/0.6419, allocations: 7.984 kB / 459.9 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.644e-06/0.6419, allocations: 4 kB / 459.9 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/0.6419, allocations: 3.984 kB / 459.9 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.6429, allocations: 468.9 kB / 460.4 MB, free: 5.676 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.6431, allocations: 100.8 kB / 460.5 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/0.6432, allocations: 8 kB / 460.5 MB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.6434, allocations: 3.984 kB / 460.5 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.678e-05/0.6435, allocations: 19.94 kB / 460.5 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.6435, allocations: 19.98 kB / 460.5 MB, free: 5.508 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001432/0.6437, allocations: 118 kB / 460.6 MB, free: 5.395 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6437, allocations: 0 / 460.6 MB, free: 5.395 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008956/0.6446, allocations: 151.6 kB / 460.8 MB, free: 5.246 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getString.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition1,integerExpression.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,addString.pkgOut[1].dummy,getString.pkgOut[1].dummy,getString.data,getString.dummy,findString.y,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addString.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 20 * 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.002341/0.647, allocations: 1.372 MB / 462.2 MB, free: 3.879 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007958/0.6478, allocations: 224.5 kB / 462.4 MB, free: 3.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.6479, allocations: 384 / 462.4 MB, free: 3.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003298/0.6482, allocations: 111.9 kB / 462.5 MB, free: 3.551 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005728/0.6488, allocations: 46.8 kB / 462.5 MB, free: 3.508 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.6509, allocations: 0.5093 MB / 463 MB, free: 2.961 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.6514, allocations: 0.7873 MB / 463.8 MB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.6516, allocations: 30.06 kB / 463.9 MB, free: 2.117 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.6518, allocations: 83.41 kB / 463.9 MB, free: 2.035 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6519, allocations: 0 / 463.9 MB, free: 2.035 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03702/0.6889, allocations: 6.236 MB / 470.2 MB, free: 11.9 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003136/0.6893, allocations: 230.1 kB / 470.4 MB, free: 11.67 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.623/3.313, allocations: 4.062 kB / 470.4 MB, free: 11.67 MB / 394.7 MB