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.002695/0.002696, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.633/2.633, allocations: 221.4 MB / 235.1 MB, free: 14.38 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.001945/0.001945, allocations: 105.9 kB / 286.1 MB, free: 12.95 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.102/0.102, allocations: 11.89 MB / 348.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.658e-05/5.723e-05, allocations: 0 / 410.2 MB, free: 58.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1492, allocations: 53.35 MB / 463.6 MB, free: 4.781 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6069/0.7562, allocations: 84.72 MB / 0.5354 GB, free: 14.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003866/0.7566, allocations: 69.16 kB / 0.5355 GB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03092/0.7876, allocations: 8.207 MB / 0.5435 GB, free: 7.641 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7877, allocations: 4 kB / 0.5435 GB, free: 7.637 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.936e-05/0.7877, allocations: 8 kB / 0.5435 GB, free: 7.629 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.001948/0.7897, allocations: 0.9683 MB / 0.5445 GB, free: 6.641 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/0.7897, allocations: 8.031 kB / 0.5445 GB, free: 6.633 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.7899, allocations: 73.91 kB / 0.5445 GB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.79, allocations: 43.47 kB / 0.5446 GB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.7906, allocations: 302.3 kB / 0.5449 GB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.218e-05/0.7907, allocations: 32.41 kB / 0.5449 GB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.151e-05/0.7908, allocations: 35.67 kB / 0.5449 GB, free: 6.176 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009346/0.7917, allocations: 386.3 kB / 0.5453 GB, free: 5.891 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.7917, allocations: 3.938 kB / 0.5453 GB, free: 5.887 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.038e-05/0.7918, allocations: 11.62 kB / 0.5453 GB, free: 5.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.7918, allocations: 8 kB / 0.5453 GB, free: 5.875 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005348/0.7924, allocations: 206.7 kB / 0.5455 GB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.7944, allocations: 1.012 MB / 0.5465 GB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005462/0.795, allocations: 245.2 kB / 0.5467 GB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.7952, allocations: 111 kB / 0.5468 GB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002053/0.7954, allocations: 85.11 kB / 0.5469 GB, free: 4.445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004187/0.7959, allocations: 190.6 kB / 0.5471 GB, free: 4.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 3.497e-06/0.7959, allocations: 0 / 0.5471 GB, free: 4.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.000939/0.7968, allocations: 341.1 kB / 0.5474 GB, free: 4.004 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.797, allocations: 118.2 kB / 0.5476 GB, free: 3.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002453/0.7972, allocations: 170.4 kB / 0.5477 GB, free: 3.719 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.926e-05/0.7973, allocations: 39.81 kB / 0.5478 GB, free: 3.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.7975, allocations: 197.3 kB / 0.5479 GB, free: 3.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.959e-05/0.7976, allocations: 57.39 kB / 0.548 GB, free: 3.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/0.7976, allocations: 11.81 kB / 0.548 GB, free: 3.449 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.7978, allocations: 336.8 kB / 0.5483 GB, free: 3.121 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.798, allocations: 71.86 kB / 0.5484 GB, free: 3.074 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.7984, allocations: 236.3 kB / 0.5486 GB, free: 2.816 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/0.7987, allocations: 118.9 kB / 0.5487 GB, free: 2.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.7987, allocations: 4 kB / 0.5487 GB, free: 2.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007954/0.7995, allocations: 347 kB / 0.5491 GB, free: 2.449 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.7995, allocations: 7.953 kB / 0.5491 GB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.7996, allocations: 8 kB / 0.5491 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.709e-05/0.7996, allocations: 8 kB / 0.5491 GB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.7999, allocations: 51.34 kB / 0.5491 GB, free: 2.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.092e-05/0.8, allocations: 11.94 kB / 0.5492 GB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.8002, allocations: 26.69 kB / 0.5492 GB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.8002, allocations: 19.38 kB / 0.5492 GB, free: 2.332 MB / 362.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 () * 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.0002515/0.8005, allocations: 160.8 kB / 0.5493 GB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.735e-05/0.8006, allocations: 23.8 kB / 0.5494 GB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000644/0.8012, allocations: 264.5 kB / 0.5496 GB, free: 1.953 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.8012, allocations: 4 kB / 0.5496 GB, free: 1.949 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.8013, allocations: 0 / 0.5496 GB, free: 1.949 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.8013, allocations: 4 kB / 0.5496 GB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.8026, allocations: 0.7411 MB / 0.5504 GB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.8027, allocations: 0 / 0.5504 GB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.705e-05/0.8027, allocations: 8 kB / 0.5504 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.8027, allocations: 0 / 0.5504 GB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.764e-05/0.8028, allocations: 7.984 kB / 0.5504 GB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.8028, allocations: 4 kB / 0.5504 GB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.8028, allocations: 0 / 0.5504 GB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008649/0.8037, allocations: 481.5 kB / 0.5508 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.8038, allocations: 88.92 kB / 0.5509 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/0.8039, allocations: 7.938 kB / 0.5509 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.804, allocations: 11.67 kB / 0.5509 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.049e-05/0.8041, allocations: 15.94 kB / 0.551 GB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.023e-05/0.8042, allocations: 19.48 kB / 0.551 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001326/0.8043, allocations: 109.8 kB / 0.5511 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8043, allocations: 0 / 0.5511 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009391/0.8053, allocations: 155.6 kB / 0.5512 GB, free: 468 kB / 362.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 () * 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.002243/0.8075, allocations: 1.362 MB / 0.5526 GB, free: 15.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006351/0.8082, allocations: 245.5 kB / 0.5528 GB, free: 14.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.8082, allocations: 0 / 0.5528 GB, free: 14.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.8085, allocations: 105.3 kB / 0.5529 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005154/0.809, allocations: 50.7 kB / 0.5529 GB, free: 14.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.8108, allocations: 0.5046 MB / 0.5534 GB, free: 14.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005171/0.8113, allocations: 0.783 MB / 0.5542 GB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.8115, allocations: 38 kB / 0.5542 GB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.8117, allocations: 80.78 kB / 0.5543 GB, free: 13.5 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.8117, allocations: 0 / 0.5543 GB, free: 13.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07457/0.8862, allocations: 6.25 MB / 0.5604 GB, free: 7.438 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005576/0.8869, allocations: 221.7 kB / 0.5606 GB, free: 7.211 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.335/4.222, allocations: 64 / 0.5606 GB, free: 7.211 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)