Running command: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.37/2.37, allocations: 237.8 MB / 250.4 MB, free: 8.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.153e-05/4.157e-05, allocations: 4 kB / 306.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1193, allocations: 53.27 MB / 360 MB, free: 5.473 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4869/0.6063, allocations: 83.47 MB / 443.4 MB, free: 7.109 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.6066, allocations: 72.75 kB / 443.5 MB, free: 7.039 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0396/0.6462, allocations: 7.312 MB / 450.8 MB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.6463, allocations: 0 / 450.8 MB, free: 15.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.494e-05/0.6463, allocations: 12 kB / 450.8 MB, free: 15.72 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002423/0.6488, allocations: 0.9415 MB / 451.8 MB, free: 14.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.6489, allocations: 12.03 kB / 451.8 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001767/0.6491, allocations: 74.52 kB / 451.9 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.6492, allocations: 43.48 kB / 451.9 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007995/0.65, allocations: 303.3 kB / 452.2 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.441e-05/0.6501, allocations: 28.77 kB / 452.2 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.6503, allocations: 32 kB / 452.2 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.6517, allocations: 389.4 kB / 452.6 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.6518, allocations: 0 / 452.6 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-05/0.6519, allocations: 19.98 kB / 452.6 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.6519, allocations: 8 kB / 452.7 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009057/0.6528, allocations: 223.6 kB / 452.9 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.6554, allocations: 1.051 MB / 453.9 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008663/0.6563, allocations: 246.4 kB / 454.2 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003585/0.6567, allocations: 111.6 kB / 454.3 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.723e-05/0.6568, allocations: 7.938 kB / 454.3 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005628/0.6574, allocations: 195.4 kB / 454.5 MB, free: 11.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 4.389e-06/0.6574, allocations: 0 / 454.5 MB, free: 11.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001336/0.6587, allocations: 337.4 kB / 454.8 MB, free: 11.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.6589, allocations: 152.4 kB / 455 MB, free: 11.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.6593, allocations: 178 kB / 455.1 MB, free: 11.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.853e-05/0.6593, allocations: 37.7 kB / 455.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/0.6596, allocations: 192.2 kB / 455.4 MB, free: 10.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.6597, allocations: 75.17 kB / 455.4 MB, free: 10.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.6598, allocations: 8 kB / 455.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.66, allocations: 330.8 kB / 455.8 MB, free: 10.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.6603, allocations: 80.86 kB / 455.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004795/0.6608, allocations: 218.9 kB / 456 MB, free: 10.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004491/0.6613, allocations: 123.9 kB / 456.2 MB, free: 9.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.6613, allocations: 0 / 456.2 MB, free: 9.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001173/0.6625, allocations: 329 kB / 456.5 MB, free: 9.613 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.6625, allocations: 7.953 kB / 456.5 MB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.6626, allocations: 8 kB / 456.5 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.247e-05/0.6626, allocations: 12.67 kB / 456.5 MB, free: 9.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/0.6632, allocations: 55.91 kB / 456.6 MB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.066e-05/0.6632, allocations: 15.94 kB / 456.6 MB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.6636, allocations: 31.89 kB / 456.6 MB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.739e-05/0.6636, allocations: 19.98 kB / 456.6 MB, free: 9.465 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 46 ($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.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,addInteger.u[1],iExp2.y,$whenCondition1,$PRE.iExp.y,iExp.y,packager.trigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0002744/0.6639, allocations: 150.1 kB / 456.8 MB, free: 9.312 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.561e-05/0.664, allocations: 23.72 kB / 456.8 MB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.645e-05/0.6641, allocations: 20.7 kB / 456.8 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.6641, allocations: 4 kB / 456.8 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.6642, allocations: 7.938 kB / 456.8 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.6642, allocations: 3.984 kB / 456.8 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/0.6662, allocations: 0.7309 MB / 457.6 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.6662, allocations: 0 / 457.6 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.6664, allocations: 7.984 kB / 457.6 MB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.436e-05/0.6664, allocations: 4 kB / 457.6 MB, free: 8.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.6665, allocations: 15.94 kB / 457.6 MB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.164e-05/0.6665, allocations: 3.984 kB / 457.6 MB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.6665, allocations: 7.953 kB / 457.6 MB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.6679, allocations: 492.9 kB / 458.1 MB, free: 7.906 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.598e-05/0.668, allocations: 92.86 kB / 458.2 MB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.462e-05/0.6681, allocations: 11.98 kB / 458.2 MB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.6684, allocations: 7.984 kB / 458.2 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.499e-05/0.6685, allocations: 23.91 kB / 458.2 MB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.713e-05/0.6685, allocations: 8 kB / 458.2 MB, free: 7.746 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001607/0.6687, allocations: 113.7 kB / 458.3 MB, free: 7.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6687, allocations: 0 / 458.3 MB, free: 7.637 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001051/0.6698, allocations: 127.6 kB / 458.5 MB, free: 7.512 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 29 (packager.internalTrigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.trigger,$whenCondition1,iExp.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],iExp2.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (iExp.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 6 * 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.002388/0.6722, allocations: 1.355 MB / 459.8 MB, free: 6.129 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009164/0.6732, allocations: 242.4 kB / 460.1 MB, free: 5.895 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.6732, allocations: 1.188 kB / 460.1 MB, free: 5.895 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004123/0.6736, allocations: 107.8 kB / 460.2 MB, free: 5.789 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007457/0.6744, allocations: 48.02 kB / 460.2 MB, free: 5.742 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.6765, allocations: 478.6 kB / 460.7 MB, free: 5.238 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000599/0.6771, allocations: 0.7872 MB / 461.5 MB, free: 4.426 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002046/0.6774, allocations: 30.06 kB / 461.5 MB, free: 4.395 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.6776, allocations: 79.97 kB / 461.6 MB, free: 4.316 MB / 378.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6776, allocations: 0 / 461.6 MB, free: 4.316 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03483/0.7125, allocations: 5.676 MB / 467.3 MB, free: 14.76 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003092/0.7128, allocations: 185.4 kB / 467.4 MB, free: 14.54 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.599/3.312, allocations: 3.938 kB / 467.4 MB, free: 14.54 MB / 394.7 MB