Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 178.6 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.2 MB / 239.7 MB, free: 1.777 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008591/0.0008591, allocations: 101.6 kB / 290.9 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05302/0.05302, allocations: 12.04 MB / 354 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003379, allocations: 8.25 kB / 417.9 MB, free: 87.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09587, allocations: 53.36 MB / 471.2 MB, free: 37.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3067/0.4026, allocations: 84.78 MB / 0.543 GB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.4028, allocations: 76.59 kB / 0.5431 GB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01976/0.4226, allocations: 8.246 MB / 0.5511 GB, free: 30.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4226, allocations: 0 / 0.5511 GB, free: 30.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.537e-05/0.4226, allocations: 11.56 kB / 0.5511 GB, free: 30.62 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.001317/0.424, allocations: 0.9767 MB / 0.5521 GB, free: 29.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.424, allocations: 7.75 kB / 0.5521 GB, free: 29.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.722e-05/0.4241, allocations: 39.27 kB / 0.5521 GB, free: 29.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.4245, allocations: 305.3 kB / 0.5524 GB, free: 29.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.4246, allocations: 33.33 kB / 0.5525 GB, free: 29.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.4246, allocations: 32.17 kB / 0.5525 GB, free: 29.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005817/0.4252, allocations: 396.9 kB / 0.5529 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4252, allocations: 0 / 0.5529 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.719e-05/0.4253, allocations: 18.39 kB / 0.5529 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.4253, allocations: 7.531 kB / 0.5529 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.4257, allocations: 218.4 kB / 0.5531 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.4271, allocations: 1.022 MB / 0.5541 GB, free: 29.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.4274, allocations: 249.3 kB / 0.5543 GB, free: 28.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.4275, allocations: 84.86 kB / 0.5544 GB, free: 28.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/0.4278, allocations: 183.1 kB / 0.5546 GB, free: 28.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.823e-06/0.4278, allocations: 4 kB / 0.5546 GB, free: 28.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.0006656/0.4284, allocations: 0.6467 MB / 0.5552 GB, free: 28.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.4285, allocations: 128.4 kB / 0.5553 GB, free: 28.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.4286, allocations: 173.9 kB / 0.5555 GB, free: 28.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.4286, allocations: 43.78 kB / 0.5556 GB, free: 28.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.4287, allocations: 183.6 kB / 0.5557 GB, free: 28.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.189e-05/0.4288, allocations: 61.86 kB / 0.5558 GB, free: 28.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.199e-05/0.4288, allocations: 3.625 kB / 0.5558 GB, free: 28.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/0.4288, allocations: 338.2 kB / 0.5561 GB, free: 27.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.429, allocations: 76.48 kB / 0.5562 GB, free: 27.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.4291, allocations: 228.2 kB / 0.5564 GB, free: 27.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.4293, allocations: 127.5 kB / 0.5565 GB, free: 27.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4293, allocations: 3.812 kB / 0.5565 GB, free: 27.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004383/0.4298, allocations: 352.4 kB / 0.5569 GB, free: 27.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.4298, allocations: 15.05 kB / 0.5569 GB, free: 27.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.4298, allocations: 5.062 kB / 0.5569 GB, free: 27.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.4298, allocations: 11.66 kB / 0.5569 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.43, allocations: 53.83 kB / 0.5569 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.4301, allocations: 9.625 kB / 0.557 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.4302, allocations: 28.16 kB / 0.557 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.4302, allocations: 17.17 kB / 0.557 GB, free: 27.41 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 () * Number of clocked 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.0002114/0.4304, allocations: 215.6 kB / 0.5572 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.4305, allocations: 24.53 kB / 0.5572 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003772/0.4309, allocations: 255.8 kB / 0.5575 GB, free: 27.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.4309, allocations: 3.219 kB / 0.5575 GB, free: 27.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4309, allocations: 1.656 kB / 0.5575 GB, free: 27.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4309, allocations: 0 / 0.5575 GB, free: 27.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007629/0.4317, allocations: 0.7459 MB / 0.5582 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4317, allocations: 4 kB / 0.5582 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.236e-05/0.4317, allocations: 6.344 kB / 0.5582 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4317, allocations: 1.656 kB / 0.5582 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.4318, allocations: 15.55 kB / 0.5582 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.4318, allocations: 7.094 kB / 0.5582 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4318, allocations: 0 / 0.5582 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.4323, allocations: 480.1 kB / 0.5587 GB, free: 26.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.4323, allocations: 93.67 kB / 0.5588 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.4323, allocations: 7.219 kB / 0.5588 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.4325, allocations: 7.109 kB / 0.5588 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.4325, allocations: 19.77 kB / 0.5588 GB, free: 26.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.4325, allocations: 12 kB / 0.5588 GB, free: 26.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.809e-05/0.4326, allocations: 119.4 kB / 0.5589 GB, free: 26.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4326, allocations: 1.562 kB / 0.5589 GB, free: 26.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004909/0.4331, allocations: 164.4 kB / 0.5591 GB, free: 26.45 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 () * Number of clocked 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.0005469/0.4337, allocations: 312.4 kB / 0.5594 GB, free: 26.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003727/0.434, allocations: 245.6 kB / 0.5596 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4341, allocations: 1.188 kB / 0.5596 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.4342, allocations: 110.4 kB / 0.5597 GB, free: 26.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.4345, allocations: 42.8 kB / 0.5598 GB, free: 26.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009641/0.4355, allocations: 0.6054 MB / 0.5604 GB, free: 25.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.4359, allocations: 0.7883 MB / 0.5611 GB, free: 25.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.907e-05/0.436, allocations: 24.25 kB / 0.5612 GB, free: 25.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.436, allocations: 27.48 kB / 0.5612 GB, free: 25.18 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.436, allocations: 0 / 0.5612 GB, free: 25.18 MB / 378.7 MB Notification: Performance of Templates: time 0.00765/0.4437, allocations: 4.039 MB / 0.5651 GB, free: 24.12 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe 2>&1)