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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String",fmuType="me",version="2.0",platforms={"static"}) "" <> 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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001488, allocations: 180.7 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.423/1.423, allocations: 223.2 MB / 239.7 MB, free: 1.797 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.001147/0.001147, allocations: 94.61 kB / 290.9 MB, free: 13.93 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.05684/0.05684, allocations: 12.05 MB / 354 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.0003121, allocations: 8.859 kB / 418 MB, free: 87.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09065, allocations: 53.37 MB / 471.3 MB, free: 37.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3918/0.4825, allocations: 84.78 MB / 0.5431 GB, free: 15.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.4828, allocations: 74.78 kB / 0.5431 GB, free: 15.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02127/0.5041, allocations: 8.252 MB / 0.5512 GB, free: 30.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.168e-06/0.5041, allocations: 2.578 kB / 0.5512 GB, free: 30.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.5042, allocations: 11.78 kB / 0.5512 GB, free: 30.41 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.001336/0.5055, allocations: 0.9759 MB / 0.5522 GB, free: 29.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.5056, allocations: 11.41 kB / 0.5522 GB, free: 29.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.284e-05/0.5056, allocations: 77.48 kB / 0.5523 GB, free: 29.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.744e-05/0.5057, allocations: 38.77 kB / 0.5523 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.5061, allocations: 304.2 kB / 0.5526 GB, free: 29.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.5061, allocations: 34.84 kB / 0.5526 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/0.5062, allocations: 30.59 kB / 0.5526 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000585/0.5068, allocations: 395 kB / 0.553 GB, free: 29.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.5068, allocations: 0 / 0.553 GB, free: 29.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.5069, allocations: 14.3 kB / 0.553 GB, free: 29.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.5069, allocations: 7.75 kB / 0.553 GB, free: 29.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003741/0.5072, allocations: 219.6 kB / 0.5532 GB, free: 29.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.5085, allocations: 1.024 MB / 0.5542 GB, free: 28.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.5088, allocations: 243.2 kB / 0.5545 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.5089, allocations: 91.08 kB / 0.5546 GB, free: 28.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.5091, allocations: 188.1 kB / 0.5547 GB, free: 28.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.784e-06/0.5092, allocations: 0 / 0.5547 GB, free: 28.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007857/0.5099, allocations: 0.6457 MB / 0.5554 GB, free: 28.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.51, allocations: 123.1 kB / 0.5555 GB, free: 28.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.5102, allocations: 175.7 kB / 0.5557 GB, free: 27.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.5102, allocations: 40.53 kB / 0.5557 GB, free: 27.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.5103, allocations: 192.5 kB / 0.5559 GB, free: 27.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.5103, allocations: 54.56 kB / 0.5559 GB, free: 27.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/0.5104, allocations: 9.25 kB / 0.5559 GB, free: 27.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.5104, allocations: 337.7 kB / 0.5563 GB, free: 27.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.5106, allocations: 79.66 kB / 0.5563 GB, free: 27.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.5107, allocations: 225.7 kB / 0.5566 GB, free: 27.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.5109, allocations: 124.5 kB / 0.5567 GB, free: 27.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5109, allocations: 3.875 kB / 0.5567 GB, free: 27.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004338/0.5114, allocations: 347.5 kB / 0.557 GB, free: 27.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.5114, allocations: 11.7 kB / 0.557 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.5114, allocations: 4.781 kB / 0.557 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.5114, allocations: 11.19 kB / 0.557 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.5116, allocations: 59.14 kB / 0.5571 GB, free: 27.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.5117, allocations: 6.531 kB / 0.5571 GB, free: 27.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.5118, allocations: 26.84 kB / 0.5571 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.5118, allocations: 22.53 kB / 0.5571 GB, free: 27.16 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.0002391/0.5121, allocations: 215.4 kB / 0.5574 GB, free: 27.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.311e-05/0.5121, allocations: 21.95 kB / 0.5574 GB, free: 27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004085/0.5125, allocations: 263.6 kB / 0.5576 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.5125, allocations: 3.531 kB / 0.5576 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.5126, allocations: 0 / 0.5576 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.5126, allocations: 5.031 kB / 0.5576 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008673/0.5134, allocations: 0.7371 MB / 0.5584 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.5135, allocations: 9.719 kB / 0.5584 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.726e-05/0.5135, allocations: 16.92 kB / 0.5584 GB, free: 26.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.5135, allocations: 1.5 kB / 0.5584 GB, free: 26.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.5136, allocations: 6.078 kB / 0.5584 GB, free: 26.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.5136, allocations: 1.719 kB / 0.5584 GB, free: 26.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.5136, allocations: 1.656 kB / 0.5584 GB, free: 26.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000555/0.5141, allocations: 471.8 kB / 0.5588 GB, free: 26.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.829e-05/0.5142, allocations: 93.55 kB / 0.5589 GB, free: 26.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.5142, allocations: 7.031 kB / 0.5589 GB, free: 26.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.5143, allocations: 9.734 kB / 0.5589 GB, free: 26.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.36e-05/0.5144, allocations: 24.8 kB / 0.559 GB, free: 26.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.5144, allocations: 17.16 kB / 0.559 GB, free: 26.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.322e-05/0.5145, allocations: 116 kB / 0.5591 GB, free: 26.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5145, allocations: 0 / 0.5591 GB, free: 26.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005799/0.5151, allocations: 154.5 kB / 0.5592 GB, free: 26.2 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.00142/0.5165, allocations: 1.355 MB / 0.5606 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.5169, allocations: 248 kB / 0.5608 GB, free: 25.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5169, allocations: 3.938 kB / 0.5608 GB, free: 25.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.5171, allocations: 113.2 kB / 0.5609 GB, free: 25.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.5175, allocations: 38.52 kB / 0.561 GB, free: 25.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.5208, allocations: 4.641 MB / 0.5655 GB, free: 21.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005359/0.5213, allocations: 0.7878 MB / 0.5663 GB, free: 20.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.5215, allocations: 34.19 kB / 0.5663 GB, free: 20.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.5216, allocations: 86.59 kB / 0.5664 GB, free: 20.56 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5216, allocations: 0 / 0.5664 GB, free: 20.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.5426, allocations: 6.218 MB / 0.5724 GB, free: 18.39 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.5429, allocations: 250.5 kB / 0.5727 GB, free: 18.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.489, allocations: 1.031 kB / 0.5727 GB, free: 18.06 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe 2>&1)