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"}) [: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.001114/0.001114, allocations: 188.5 kB / 7.846 MB, free: 2.504 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.259/1.259, allocations: 221.4 MB / 229.7 MB, free: 3.012 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.0009583/0.0009583, allocations: 96.12 kB / 280.5 MB, free: 1.227 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.05532/0.05532, allocations: 11.91 MB / 343.2 MB, free: 2.805 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2331/0.2885, allocations: 59.46 MB / 402.7 MB, free: 64.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.4021, allocations: 53.35 MB / 456 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.7604, allocations: 84.42 MB / 0.5278 GB, free: 1.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.7607, allocations: 65.66 kB / 0.5278 GB, free: 1.465 MB / 346.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.02367/0.7844, allocations: 8.765 MB / 0.5364 GB, free: 10.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.7844, allocations: 8 kB / 0.5364 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.096e-05/0.7845, allocations: 43.52 kB / 0.5364 GB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.785, allocations: 297.5 kB / 0.5367 GB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.7851, allocations: 12 kB / 0.5367 GB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.7851, allocations: 26.86 kB / 0.5367 GB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000431/0.7856, allocations: 195.2 kB / 0.5369 GB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006093/0.7862, allocations: 353 kB / 0.5373 GB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.7862, allocations: 0 / 0.5373 GB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.7862, allocations: 7.922 kB / 0.5373 GB, free: 9.285 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.171e-05/0.7863, allocations: 8 kB / 0.5373 GB, free: 9.277 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.7879, allocations: 0.9215 MB / 0.5382 GB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.7882, allocations: 224.4 kB / 0.5384 GB, free: 8.254 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.7884, allocations: 106.1 kB / 0.5385 GB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.7886, allocations: 89.09 kB / 0.5386 GB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.7888, allocations: 173.9 kB / 0.5388 GB, free: 7.914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.784e-06/0.7888, allocations: 0 / 0.5388 GB, free: 7.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007865/0.7896, allocations: 264.8 kB / 0.539 GB, free: 7.703 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/0.7897, allocations: 130.2 kB / 0.5391 GB, free: 7.555 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.7899, allocations: 168.5 kB / 0.5393 GB, free: 7.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.7899, allocations: 33.7 kB / 0.5393 GB, free: 7.375 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.7901, allocations: 174.5 kB / 0.5395 GB, free: 7.215 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.739e-05/0.7901, allocations: 64.08 kB / 0.5396 GB, free: 7.164 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.165e-05/0.7902, allocations: 0 / 0.5396 GB, free: 7.164 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.7903, allocations: 335.9 kB / 0.5399 GB, free: 6.836 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.7904, allocations: 66.42 kB / 0.5399 GB, free: 6.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.7907, allocations: 220.9 kB / 0.5401 GB, free: 6.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/0.791, allocations: 130.8 kB / 0.5403 GB, free: 6.453 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.791, allocations: 0 / 0.5403 GB, free: 6.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005778/0.7916, allocations: 320.8 kB / 0.5406 GB, free: 6.188 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.7916, allocations: 4 kB / 0.5406 GB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.7916, allocations: 4 kB / 0.5406 GB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.7917, allocations: 8 kB / 0.5406 GB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.7919, allocations: 59.69 kB / 0.5406 GB, free: 6.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.792, allocations: 15.84 kB / 0.5407 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.7921, allocations: 23.78 kB / 0.5407 GB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.7922, allocations: 19.56 kB / 0.5407 GB, free: 6.062 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.0001925/0.7924, allocations: 141.8 kB / 0.5408 GB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.7924, allocations: 19.81 kB / 0.5409 GB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005253/0.7929, allocations: 208.4 kB / 0.5411 GB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.7929, allocations: 7.984 kB / 0.5411 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.793, allocations: 4 kB / 0.5411 GB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.793, allocations: 0 / 0.5411 GB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009326/0.7939, allocations: 0.6058 MB / 0.5417 GB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.7939, allocations: 3.938 kB / 0.5417 GB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.653e-05/0.794, allocations: 11.94 kB / 0.5417 GB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.794, allocations: 64 / 0.5417 GB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.794, allocations: 19.05 kB / 0.5417 GB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.794, allocations: 4 kB / 0.5417 GB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.794, allocations: 80 / 0.5417 GB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006631/0.7947, allocations: 394.6 kB / 0.5421 GB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009092/0.7956, allocations: 0.7712 MB / 0.5428 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.715e-05/0.7957, allocations: 92.92 kB / 0.5429 GB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.432e-05/0.7958, allocations: 11.42 kB / 0.5429 GB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.7959, allocations: 4 kB / 0.5429 GB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.7959, allocations: 23 kB / 0.543 GB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.796, allocations: 11.98 kB / 0.543 GB, free: 3.891 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.002e-05/0.7961, allocations: 106.6 kB / 0.5431 GB, free: 3.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001191/0.7973, allocations: 170.6 kB / 0.5432 GB, free: 3.66 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.0006825/0.798, allocations: 319.3 kB / 0.5435 GB, free: 3.375 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004356/0.7984, allocations: 219.2 kB / 0.5437 GB, free: 3.215 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7984, allocations: 4 kB / 0.5437 GB, free: 3.211 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.7986, allocations: 106.9 kB / 0.5438 GB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.799, allocations: 38.89 kB / 0.5439 GB, free: 3.105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.8, allocations: 385.3 kB / 0.5443 GB, free: 2.742 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004723/0.8005, allocations: 0.8107 MB / 0.545 GB, free: 1.906 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.8005, allocations: 4 kB / 0.545 GB, free: 1.902 MB / 362.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)