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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.001363/0.001363, allocations: 168.1 kB / 16.8 MB, free: 4.887 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.338/1.338, allocations: 223.3 MB / 240.8 MB, free: 11.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008222/0.0008221, allocations: 93 kB / 292 MB, free: 10.83 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05495/0.05495, allocations: 12.05 MB / 355.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003903, allocations: 16 kB / 419.2 MB, free: 53.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08962/0.09002, allocations: 53.34 MB / 472.5 MB, free: 296 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2913/0.3814, allocations: 84.8 MB / 0.5443 GB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.3817, allocations: 75.95 kB / 0.5443 GB, free: 12.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02296/0.4046, allocations: 8.245 MB / 0.5524 GB, free: 4.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4047, allocations: 0 / 0.5524 GB, free: 4.539 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.846e-05/0.4047, allocations: 11.94 kB / 0.5524 GB, free: 4.527 MB / 362.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.001553/0.4063, allocations: 0.9726 MB / 0.5533 GB, free: 3.457 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.4063, allocations: 12.03 kB / 0.5533 GB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.4065, allocations: 40.55 kB / 0.5534 GB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004574/0.4069, allocations: 305.9 kB / 0.5537 GB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.689e-05/0.407, allocations: 25.36 kB / 0.5537 GB, free: 3.043 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.804e-05/0.4071, allocations: 36.38 kB / 0.5537 GB, free: 3.008 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007067/0.4078, allocations: 406.2 kB / 0.5541 GB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.4078, allocations: 0 / 0.5541 GB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.057e-05/0.4078, allocations: 20 kB / 0.5541 GB, free: 2.578 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.4079, allocations: 12 kB / 0.5542 GB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.4083, allocations: 218.1 kB / 0.5544 GB, free: 2.352 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.4098, allocations: 1.006 MB / 0.5553 GB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.4102, allocations: 243.6 kB / 0.5556 GB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.4103, allocations: 113.9 kB / 0.5557 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.4105, allocations: 85.11 kB / 0.5558 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002873/0.4108, allocations: 190.5 kB / 0.556 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.224e-06/0.4108, allocations: 4 kB / 0.556 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007519/0.4115, allocations: 420.1 kB / 0.5564 GB, free: 176 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.4116, allocations: 126.7 kB / 0.5565 GB, free: 24 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.4118, allocations: 192.1 kB / 0.5567 GB, free: 15.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.4119, allocations: 41.69 kB / 0.5567 GB, free: 15.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.412, allocations: 188.4 kB / 0.5569 GB, free: 15.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.595e-05/0.4121, allocations: 59.39 kB / 0.5569 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.368e-05/0.4121, allocations: 8 kB / 0.5569 GB, free: 15.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4122, allocations: 334.8 kB / 0.5573 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.4124, allocations: 76.7 kB / 0.5573 GB, free: 15.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.4126, allocations: 226 kB / 0.5576 GB, free: 14.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000557/0.4132, allocations: 366.5 kB / 0.5579 GB, free: 14.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.4132, allocations: 7.922 kB / 0.5579 GB, free: 14.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005299/0.4137, allocations: 344.8 kB / 0.5582 GB, free: 14.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.4138, allocations: 11.94 kB / 0.5582 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.4138, allocations: 4 kB / 0.5583 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.4138, allocations: 8.25 kB / 0.5583 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.414, allocations: 55.91 kB / 0.5583 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.414, allocations: 20.48 kB / 0.5583 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.4142, allocations: 31.75 kB / 0.5584 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.4142, allocations: 16 kB / 0.5584 GB, free: 13.91 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.0002591/0.4145, allocations: 215.1 kB / 0.5586 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.4145, allocations: 19.81 kB / 0.5586 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004389/0.4149, allocations: 258.7 kB / 0.5588 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.415, allocations: 8 kB / 0.5589 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.415, allocations: 0 / 0.5589 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.415, allocations: 4 kB / 0.5589 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009733/0.416, allocations: 0.7439 MB / 0.5596 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.416, allocations: 0 / 0.5596 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.603e-05/0.416, allocations: 7.984 kB / 0.5596 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.4161, allocations: 4 kB / 0.5596 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.4161, allocations: 7.984 kB / 0.5596 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.4161, allocations: 7.938 kB / 0.5596 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4161, allocations: 0 / 0.5596 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000606/0.4167, allocations: 451.9 kB / 0.56 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.4168, allocations: 92.92 kB / 0.5601 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.4168, allocations: 3.984 kB / 0.5601 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.4169, allocations: 11.94 kB / 0.5601 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.417, allocations: 23.91 kB / 0.5602 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.417, allocations: 15.98 kB / 0.5602 GB, free: 11.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.903e-05/0.4171, allocations: 115.6 kB / 0.5603 GB, free: 11.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4171, allocations: 0 / 0.5603 GB, free: 11.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005746/0.4177, allocations: 155.6 kB / 0.5604 GB, free: 11.68 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.0006767/0.4184, allocations: 326.2 kB / 0.5608 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004288/0.4188, allocations: 244.5 kB / 0.561 GB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4189, allocations: 0 / 0.561 GB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.4191, allocations: 115 kB / 0.5611 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.4195, allocations: 50.8 kB / 0.5611 GB, free: 11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.4206, allocations: 0.604 MB / 0.5617 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.421, allocations: 0.78 MB / 0.5625 GB, free: 9.547 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.4211, allocations: 30.72 kB / 0.5625 GB, free: 9.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.564e-05/0.4212, allocations: 23.42 kB / 0.5626 GB, free: 9.496 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4212, allocations: 3.938 kB / 0.5626 GB, free: 9.492 MB / 378.7 MB Notification: Performance of Templates: time 0.008112/0.4293, allocations: 4.062 MB / 0.5665 GB, free: 5.461 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)