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.0009758/0.0009759, allocations: 177.5 kB / 8.051 MB, free: 1.023 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.223/1.223, allocations: 221.5 MB / 230 MB, free: 7.598 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.0008175/0.0008175, allocations: 102 kB / 280.9 MB, free: 5.34 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.04649/0.04649, allocations: 11.92 MB / 343.6 MB, free: 3.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.515e-05/1.518e-05, allocations: 2.594 kB / 403.1 MB, free: 45.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08287/0.0829, allocations: 53.36 MB / 456.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3213/0.4042, allocations: 84.04 MB / 0.5279 GB, free: 17.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000154/0.4044, allocations: 74.61 kB / 0.5279 GB, free: 17.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01974/0.4241, allocations: 8.162 MB / 0.5359 GB, free: 16.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4242, allocations: 0 / 0.5359 GB, free: 16.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.667e-05/0.4242, allocations: 7.812 kB / 0.5359 GB, free: 16.3 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.001123/0.4253, allocations: 0.9549 MB / 0.5368 GB, free: 15.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.4254, allocations: 8.75 kB / 0.5368 GB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.125e-05/0.4255, allocations: 47.69 kB / 0.5369 GB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.4258, allocations: 300.8 kB / 0.5372 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.4258, allocations: 14.03 kB / 0.5372 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.4259, allocations: 22.89 kB / 0.5372 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000333/0.4262, allocations: 191.3 kB / 0.5374 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004958/0.4267, allocations: 342.2 kB / 0.5377 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.4267, allocations: 3.938 kB / 0.5377 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.4268, allocations: 3.719 kB / 0.5377 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.4268, allocations: 12.78 kB / 0.5377 GB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009555/0.4278, allocations: 0.9256 MB / 0.5386 GB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.428, allocations: 222.6 kB / 0.5389 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.4282, allocations: 103.3 kB / 0.539 GB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-05/0.4283, allocations: 87.86 kB / 0.539 GB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002113/0.4285, allocations: 183.7 kB / 0.5392 GB, free: 14.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.613e-06/0.4285, allocations: 0 / 0.5392 GB, free: 14.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007746/0.4293, allocations: 349.1 kB / 0.5395 GB, free: 14.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.4293, allocations: 127.2 kB / 0.5397 GB, free: 14.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.4295, allocations: 160.8 kB / 0.5398 GB, free: 14.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.4295, allocations: 35.88 kB / 0.5399 GB, free: 14.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/0.4296, allocations: 197.9 kB / 0.54 GB, free: 14.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.4296, allocations: 52.2 kB / 0.5401 GB, free: 14.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.193e-05/0.4296, allocations: 1.719 kB / 0.5401 GB, free: 14.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.4297, allocations: 332.8 kB / 0.5404 GB, free: 13.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.4298, allocations: 69.42 kB / 0.5405 GB, free: 13.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.4299, allocations: 218.8 kB / 0.5407 GB, free: 13.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.4302, allocations: 122 kB / 0.5408 GB, free: 13.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4302, allocations: 5.562 kB / 0.5408 GB, free: 13.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004558/0.4307, allocations: 308.8 kB / 0.5411 GB, free: 13.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.4307, allocations: 12.75 kB / 0.5411 GB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4307, allocations: 3.906 kB / 0.5411 GB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.4307, allocations: 11.73 kB / 0.5411 GB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.4309, allocations: 57.67 kB / 0.5412 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.4309, allocations: 13.69 kB / 0.5412 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.431, allocations: 19.44 kB / 0.5412 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.4311, allocations: 13.38 kB / 0.5412 GB, free: 13.42 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.0001094/0.4312, allocations: 157.3 kB / 0.5414 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.4312, allocations: 21.66 kB / 0.5414 GB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004517/0.4317, allocations: 270.9 kB / 0.5417 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.4317, allocations: 3.875 kB / 0.5417 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.4317, allocations: 0 / 0.5417 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4317, allocations: 2.062 kB / 0.5417 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007362/0.4324, allocations: 0.6727 MB / 0.5423 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4325, allocations: 0 / 0.5423 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.017e-05/0.4325, allocations: 9.953 kB / 0.5423 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4325, allocations: 3.953 kB / 0.5423 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.4325, allocations: 12.61 kB / 0.5423 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4325, allocations: 3.875 kB / 0.5424 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4326, allocations: 0 / 0.5424 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/0.4332, allocations: 481.2 kB / 0.5428 GB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.4335, allocations: 90.69 kB / 0.5429 GB, free: 28.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.4336, allocations: 11.02 kB / 0.5429 GB, free: 28.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.4337, allocations: 6.812 kB / 0.5429 GB, free: 28.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.025e-05/0.4337, allocations: 20.27 kB / 0.5429 GB, free: 28.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.4338, allocations: 16.47 kB / 0.5429 GB, free: 28.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.169e-05/0.4338, allocations: 113 kB / 0.5431 GB, free: 28.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4338, allocations: 0 / 0.5431 GB, free: 28.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004765/0.4343, allocations: 146.5 kB / 0.5432 GB, free: 28.5 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 () * 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.0004834/0.4348, allocations: 314.4 kB / 0.5435 GB, free: 28.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002961/0.4351, allocations: 226.9 kB / 0.5437 GB, free: 28.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4351, allocations: 0 / 0.5437 GB, free: 28.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.4353, allocations: 102.5 kB / 0.5438 GB, free: 28.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.4356, allocations: 43.48 kB / 0.5439 GB, free: 28.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006343/0.4362, allocations: 388.8 kB / 0.5442 GB, free: 28.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.4365, allocations: 0.7869 MB / 0.545 GB, free: 27.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.356e-05/0.4366, allocations: 31.58 kB / 0.545 GB, free: 27.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/0.4367, allocations: 25.22 kB / 0.545 GB, free: 27.41 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4367, allocations: 0 / 0.545 GB, free: 27.41 MB / 378.7 MB Notification: Performance of Templates: time 0.006253/0.4429, allocations: 3.962 MB / 0.5489 GB, free: 26.99 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)