Running command: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.336/2.336, allocations: 237.8 MB / 250.4 MB, free: 8.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.582e-05/6.572e-05, allocations: 7.844 kB / 306.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1524, allocations: 53.27 MB / 360 MB, free: 5.484 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5274/0.6799, allocations: 84.97 MB / 444.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.6802, allocations: 72.45 kB / 445 MB, free: 5.543 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04045/0.7207, allocations: 9.226 MB / 454.2 MB, free: 12.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.7207, allocations: 0 / 454.2 MB, free: 12.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.175e-05/0.7208, allocations: 19.94 kB / 454.2 MB, free: 12.31 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg getBoolean.pkgIn.pkg = getInteger.pkgOut[1].pkg addBoolean.pkgIn.pkg = addInteger.pkgOut[1].pkg getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg addBoolean.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg getInteger.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = packInt1.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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.002595/0.7234, allocations: 1.168 MB / 455.4 MB, free: 11.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.7235, allocations: 12.03 kB / 455.4 MB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001791/0.7236, allocations: 82.52 kB / 455.5 MB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.7238, allocations: 51.44 kB / 455.6 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000828/0.7247, allocations: 352.1 kB / 455.9 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.319e-05/0.7247, allocations: 36.98 kB / 455.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.7249, allocations: 40 kB / 456 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.7262, allocations: 489 kB / 456.4 MB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.7262, allocations: 0 / 456.4 MB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.77e-05/0.7263, allocations: 27.94 kB / 456.5 MB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.7263, allocations: 12 kB / 456.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008563/0.7272, allocations: 281.4 kB / 456.8 MB, free: 9.602 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002709/0.7299, allocations: 1.214 MB / 458 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.7311, allocations: 360.1 kB / 458.3 MB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003769/0.7315, allocations: 146.8 kB / 458.5 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.7316, allocations: 4.188 kB / 458.5 MB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005624/0.7322, allocations: 247 kB / 458.7 MB, free: 7.523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 5.2e-06/0.7322, allocations: 0 / 458.7 MB, free: 7.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001322/0.7335, allocations: 452.3 kB / 459.2 MB, free: 7.078 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.7336, allocations: 127 kB / 459.3 MB, free: 6.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.734, allocations: 210.1 kB / 459.5 MB, free: 6.715 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.584e-05/0.7341, allocations: 45.69 kB / 459.5 MB, free: 6.664 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.7343, allocations: 212.8 kB / 459.7 MB, free: 6.449 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.7344, allocations: 94.89 kB / 459.8 MB, free: 6.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.7345, allocations: 12 kB / 459.8 MB, free: 6.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.7346, allocations: 342.8 kB / 460.2 MB, free: 6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003195/0.735, allocations: 109 kB / 460.3 MB, free: 5.895 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/0.7355, allocations: 297.1 kB / 460.6 MB, free: 5.523 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004226/0.7359, allocations: 155.8 kB / 460.7 MB, free: 5.371 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.7359, allocations: 8 kB / 460.7 MB, free: 5.363 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001089/0.737, allocations: 429.5 kB / 461.2 MB, free: 4.938 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.7371, allocations: 4 kB / 461.2 MB, free: 4.934 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.7371, allocations: 8 kB / 461.2 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.155e-05/0.7371, allocations: 12 kB / 461.2 MB, free: 4.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.7376, allocations: 79.77 kB / 461.3 MB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.7377, allocations: 8 kB / 461.3 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.738, allocations: 43.64 kB / 461.3 MB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-05/0.7381, allocations: 24 kB / 461.3 MB, free: 4.762 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.getBoolean.dummy,getBoolean.dummy,$PRE.addBoolean.pkgOut[1].dummy,addBoolean.pkgOut[1].dummy,$PRE.unpackInt1.dummy,unpackInt1.dummy,$PRE.unpackInt1.y,unpackInt1.y,$PRE.unpackInt1.pkgOut[1].dummy,unpackInt1.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getInteger.pkgOut[1].dummy,getInteger.pkgOut[1].dummy,$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.packInt1.pkgOut[1].dummy,packInt1.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,$whenCondition2,integerExpression.y,$whenCondition1,addBoolean.pkgOut[1].trigger,addInteger.u[1],integerExpression1.y,getBoolean.y[1],$PRE.getBoolean.y_int[1],getBoolean.y_int[1],addBoolean.u[1],addBoolean.u_int[1],$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,getBoolean.pkgIn.userPkgBitSize,getBoolean.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002533/0.7384, allocations: 184.9 kB / 461.5 MB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.7385, allocations: 27.7 kB / 461.5 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.793e-05/0.7385, allocations: 22.5 kB / 461.6 MB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.7386, allocations: 4 kB / 461.6 MB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.7386, allocations: 3.984 kB / 461.6 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.7386, allocations: 8 kB / 461.6 MB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.7406, allocations: 0.9196 MB / 462.5 MB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.7406, allocations: 4 kB / 462.5 MB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.7407, allocations: 15.92 kB / 462.5 MB, free: 3.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.7407, allocations: 0 / 462.5 MB, free: 3.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-05/0.7408, allocations: 11.98 kB / 462.5 MB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.7408, allocations: 4 kB / 462.5 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.7408, allocations: 0 / 462.5 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.7421, allocations: 0.5811 MB / 463.1 MB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.864e-05/0.7422, allocations: 100.8 kB / 463.2 MB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.086e-05/0.7423, allocations: 7.984 kB / 463.2 MB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.7425, allocations: 19.98 kB / 463.2 MB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.41e-05/0.7426, allocations: 31.92 kB / 463.3 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-05/0.7427, allocations: 19.98 kB / 463.3 MB, free: 2.684 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001529/0.7429, allocations: 133 kB / 463.4 MB, free: 2.555 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.7429, allocations: 0 / 463.4 MB, free: 2.555 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008373/0.7437, allocations: 143.5 kB / 463.6 MB, free: 2.414 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: 39 (unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgOut[1].trigger,$whenCondition2,$whenCondition1,integerExpression.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],integerExpression1.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.pkgOut[1].dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,addBoolean.pkgOut[1].dummy,addBoolean.u[1],addBoolean.u_int[1],getBoolean.y[1],getBoolean.y_int[1],getBoolean.dummy,booleanPulse.pulseStart,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 26 * 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.002149/0.7459, allocations: 1.389 MB / 464.9 MB, free: 1.004 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009115/0.7468, allocations: 316.3 kB / 465.3 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7469, allocations: 0 / 465.3 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004127/0.7473, allocations: 148.9 kB / 465.4 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007158/0.748, allocations: 70.33 kB / 465.5 MB, free: 500 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.7503, allocations: 0.6342 MB / 466.1 MB, free: 15.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005271/0.7508, allocations: 0.8235 MB / 466.9 MB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002373/0.7511, allocations: 51.31 kB / 467 MB, free: 14.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.7513, allocations: 111.4 kB / 467.1 MB, free: 14.81 MB / 394.7 MB Notification: Performance of SimCode: time 1.683e-06/0.7513, allocations: 0 / 467.1 MB, free: 14.81 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03387/0.7852, allocations: 7.183 MB / 474.3 MB, free: 7.746 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003335/0.7856, allocations: 171.7 kB / 474.4 MB, free: 7.523 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.484, allocations: 0 / 474.4 MB, free: 7.523 MB / 394.7 MB