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.0009512/0.0009515, allocations: 181.4 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 1.277/1.277, 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.0008918/0.0008917, allocations: 96.7 kB / 286.1 MB, free: 12.99 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.05081/0.05081, allocations: 11.9 MB / 348.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.441e-05/2.451e-05, allocations: 0 / 410.1 MB, free: 58.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07879/0.07883, allocations: 53.36 MB / 463.5 MB, free: 4.902 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.385, allocations: 84.71 MB / 0.5353 GB, free: 14.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001749/0.3852, allocations: 73.52 kB / 0.5354 GB, free: 14.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02119/0.4064, allocations: 8.207 MB / 0.5434 GB, free: 7.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4064, allocations: 0 / 0.5434 GB, free: 7.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.172e-05/0.4065, allocations: 12 kB / 0.5434 GB, free: 7.645 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.001796/0.4083, allocations: 0.9561 MB / 0.5444 GB, free: 6.668 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.4083, allocations: 11.97 kB / 0.5444 GB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.4085, allocations: 51.47 kB / 0.5444 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005241/0.409, allocations: 298.3 kB / 0.5447 GB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.4091, allocations: 20.47 kB / 0.5447 GB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.405e-05/0.4091, allocations: 39.48 kB / 0.5448 GB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008495/0.41, allocations: 387.1 kB / 0.5451 GB, free: 5.977 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.41, allocations: 0 / 0.5451 GB, free: 5.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.771e-05/0.4101, allocations: 14.69 kB / 0.5451 GB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.4101, allocations: 15.94 kB / 0.5452 GB, free: 5.957 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00053/0.4106, allocations: 206.4 kB / 0.5454 GB, free: 5.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.4123, allocations: 1.016 MB / 0.5463 GB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/0.4128, allocations: 235.7 kB / 0.5466 GB, free: 4.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.413, allocations: 109.1 kB / 0.5467 GB, free: 4.633 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001457/0.4132, allocations: 85.11 kB / 0.5468 GB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.4136, allocations: 191.1 kB / 0.5469 GB, free: 4.359 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.084e-06/0.4136, allocations: 0 / 0.5469 GB, free: 4.359 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.000811/0.4144, allocations: 344.5 kB / 0.5473 GB, free: 4.082 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.4145, allocations: 122.5 kB / 0.5474 GB, free: 3.945 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.4147, allocations: 170.3 kB / 0.5475 GB, free: 3.797 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/0.4147, allocations: 44.69 kB / 0.5476 GB, free: 3.754 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.4149, allocations: 192.8 kB / 0.5478 GB, free: 3.578 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.766e-05/0.415, allocations: 55.27 kB / 0.5478 GB, free: 3.535 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-05/0.415, allocations: 7.125 kB / 0.5478 GB, free: 3.531 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4151, allocations: 332.5 kB / 0.5481 GB, free: 3.207 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.4153, allocations: 81.23 kB / 0.5482 GB, free: 3.152 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.4156, allocations: 229.9 kB / 0.5484 GB, free: 2.898 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.4159, allocations: 123.5 kB / 0.5486 GB, free: 2.809 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4159, allocations: 0 / 0.5486 GB, free: 2.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007354/0.4167, allocations: 349.2 kB / 0.5489 GB, free: 2.531 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.4167, allocations: 17.48 kB / 0.5489 GB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.4167, allocations: 4 kB / 0.5489 GB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.4168, allocations: 11.94 kB / 0.5489 GB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.4171, allocations: 51.91 kB / 0.549 GB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.926e-05/0.4171, allocations: 11.94 kB / 0.549 GB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.4173, allocations: 27.38 kB / 0.549 GB, free: 2.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.349e-05/0.4173, allocations: 15.88 kB / 0.549 GB, free: 2.406 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.0001912/0.4175, allocations: 157.4 kB / 0.5492 GB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.4176, allocations: 19.8 kB / 0.5492 GB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005469/0.4182, allocations: 262.1 kB / 0.5494 GB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.4182, allocations: 4 kB / 0.5495 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4182, allocations: 0 / 0.5495 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4182, allocations: 4 kB / 0.5495 GB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.4194, allocations: 0.7414 MB / 0.5502 GB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4194, allocations: 4 kB / 0.5502 GB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.167e-05/0.4195, allocations: 4 kB / 0.5502 GB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.4195, allocations: 4 kB / 0.5502 GB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.4195, allocations: 7.984 kB / 0.5502 GB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4195, allocations: 0 / 0.5502 GB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4196, allocations: 0 / 0.5502 GB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007584/0.4203, allocations: 486.2 kB / 0.5507 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.936e-05/0.4204, allocations: 88.92 kB / 0.5507 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.4204, allocations: 7.25 kB / 0.5508 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.4206, allocations: 11.92 kB / 0.5508 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.4207, allocations: 15.05 kB / 0.5508 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/0.4207, allocations: 20 kB / 0.5508 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001048/0.4208, allocations: 115.7 kB / 0.5509 GB, free: 0.668 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4208, allocations: 0 / 0.5509 GB, free: 0.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007691/0.4216, allocations: 155.7 kB / 0.5511 GB, free: 0.5312 MB / 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.0007529/0.4224, allocations: 329 kB / 0.5514 GB, free: 240 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005229/0.4229, allocations: 240.4 kB / 0.5516 GB, free: 60 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4229, allocations: 4 kB / 0.5516 GB, free: 56 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.4232, allocations: 104.3 kB / 0.5517 GB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.4236, allocations: 45.84 kB / 0.5517 GB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.4247, allocations: 390 kB / 0.5521 GB, free: 15.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/0.4252, allocations: 0.7905 MB / 0.5529 GB, free: 14.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.4253, allocations: 26.08 kB / 0.5529 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.145e-05/0.4254, allocations: 23.42 kB / 0.5529 GB, free: 14.72 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4254, allocations: 0 / 0.5529 GB, free: 14.72 MB / 378.7 MB Notification: Performance of Templates: time 0.01116/0.4366, allocations: 4.053 MB / 0.5569 GB, free: 10.71 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)