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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009305/0.0009304, allocations: 189.4 kB / 7.843 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.036/1.036, allocations: 221.4 MB / 229.7 MB, free: 3.008 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.0008025/0.0008025, allocations: 90.48 kB / 280.5 MB, free: 1.324 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.04686/0.04686, allocations: 11.9 MB / 343.2 MB, free: 2.879 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.919e-06/4.939e-06, allocations: 0 / 402.6 MB, free: 64.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06481/0.06483, allocations: 53.35 MB / 455.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2079/0.2727, allocations: 84.4 MB / 0.5276 GB, free: 1.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001638/0.2729, allocations: 75.42 kB / 0.5277 GB, free: 1.633 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01878/0.2917, allocations: 7.777 MB / 0.5353 GB, free: 11.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.2918, allocations: 15.94 kB / 0.5353 GB, free: 11.23 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.001136/0.2929, allocations: 0.9597 MB / 0.5363 GB, free: 10.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.2929, allocations: 9.031 kB / 0.5363 GB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.293, allocations: 43.52 kB / 0.5363 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.2934, allocations: 299.5 kB / 0.5366 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.2934, allocations: 19.73 kB / 0.5366 GB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.2935, allocations: 24 kB / 0.5366 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003216/0.2938, allocations: 192.7 kB / 0.5368 GB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/0.2943, allocations: 348.3 kB / 0.5372 GB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.2943, allocations: 3.984 kB / 0.5372 GB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.2943, allocations: 4 kB / 0.5372 GB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.2943, allocations: 8 kB / 0.5372 GB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.2954, allocations: 0.9248 MB / 0.5381 GB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.2957, allocations: 221.3 kB / 0.5383 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2958, allocations: 108.2 kB / 0.5384 GB, free: 8.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.544e-05/0.2959, allocations: 92.72 kB / 0.5385 GB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.2961, allocations: 174.1 kB / 0.5386 GB, free: 8.074 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.432e-06/0.2961, allocations: 4 kB / 0.5386 GB, free: 8.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0006188/0.2967, allocations: 270.7 kB / 0.5389 GB, free: 7.855 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.2968, allocations: 118.7 kB / 0.539 GB, free: 7.719 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.2969, allocations: 168.4 kB / 0.5392 GB, free: 7.574 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.297, allocations: 33.14 kB / 0.5392 GB, free: 7.539 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.323e-05/0.297, allocations: 179.7 kB / 0.5394 GB, free: 7.375 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.2971, allocations: 66.19 kB / 0.5394 GB, free: 7.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.2971, allocations: 0 / 0.5394 GB, free: 7.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2972, allocations: 329.8 kB / 0.5398 GB, free: 6.996 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.2973, allocations: 76.72 kB / 0.5398 GB, free: 6.949 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.2975, allocations: 212.6 kB / 0.54 GB, free: 6.707 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.2978, allocations: 130.8 kB / 0.5402 GB, free: 6.609 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.2978, allocations: 4 kB / 0.5402 GB, free: 6.605 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005024/0.2983, allocations: 314.2 kB / 0.5405 GB, free: 6.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.208e-06/0.2983, allocations: 4 kB / 0.5405 GB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2983, allocations: 4.594 kB / 0.5405 GB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2983, allocations: 8 kB / 0.5405 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.2985, allocations: 62.84 kB / 0.5405 GB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2985, allocations: 15.92 kB / 0.5406 GB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.2987, allocations: 15.84 kB / 0.5406 GB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.2987, allocations: 19.55 kB / 0.5406 GB, free: 6.223 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.0001258/0.2988, allocations: 148.1 kB / 0.5407 GB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.2989, allocations: 23.89 kB / 0.5407 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004351/0.2993, allocations: 211.4 kB / 0.541 GB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2993, allocations: 4 kB / 0.541 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2993, allocations: 0 / 0.541 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2993, allocations: 0 / 0.541 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007417/0.3001, allocations: 0.6188 MB / 0.5416 GB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.3001, allocations: 0 / 0.5416 GB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.3001, allocations: 8 kB / 0.5416 GB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3001, allocations: 4 kB / 0.5416 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.3002, allocations: 11.55 kB / 0.5416 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3002, allocations: 0 / 0.5416 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3002, allocations: 4 kB / 0.5416 GB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005806/0.3008, allocations: 400.3 kB / 0.542 GB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.936e-05/0.3008, allocations: 92.92 kB / 0.5421 GB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.3009, allocations: 4 kB / 0.5421 GB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.301, allocations: 11.3 kB / 0.5421 GB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.256e-05/0.301, allocations: 15.89 kB / 0.5421 GB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.301, allocations: 15.36 kB / 0.5421 GB, free: 4.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.016e-05/0.3011, allocations: 107 kB / 0.5422 GB, free: 4.699 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004098/0.3015, allocations: 145.9 kB / 0.5423 GB, free: 4.566 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.000474/0.302, allocations: 316.2 kB / 0.5426 GB, free: 4.281 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002933/0.3023, allocations: 222.8 kB / 0.5429 GB, free: 4.117 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3023, allocations: 0 / 0.5429 GB, free: 4.117 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.3025, allocations: 112.1 kB / 0.543 GB, free: 4.039 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.3027, allocations: 43.94 kB / 0.543 GB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007311/0.3035, allocations: 375.4 kB / 0.5434 GB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.3038, allocations: 0.8132 MB / 0.5442 GB, free: 2.812 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3039, allocations: 0 / 0.5442 GB, free: 2.812 MB / 362.7 MB Notification: Performance of Templates: time 0.006991/0.3109, allocations: 4.35 MB / 0.5484 GB, free: 14.51 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)