Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.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_TCPIPServer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 181 kB / 15.8 MB, free: 6.336 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.316/1.316, allocations: 223.2 MB / 239.7 MB, free: 1.789 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.0009239/0.0009238, allocations: 107.5 kB / 290.9 MB, free: 13.93 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.05369/0.05369, allocations: 12.06 MB / 354.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002964, allocations: 9.469 kB / 417.9 MB, free: 87.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08059/0.0809, allocations: 53.36 MB / 471.2 MB, free: 37.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3028/0.3837, allocations: 87.11 MB / 0.5453 GB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.384, allocations: 73.59 kB / 0.5453 GB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01944/0.4034, allocations: 8.331 MB / 0.5535 GB, free: 30.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4035, allocations: 192 / 0.5535 GB, free: 30.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.833e-05/0.4035, allocations: 7.719 kB / 0.5535 GB, free: 30.5 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = tCPIPSend.pkgIn.pkg addInteger.pkgIn.pkg = packager.pkgOut.pkg getInteger.pkgIn.pkg = tCPIPReceive.pkgOut.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.001228/0.4048, allocations: 0.8526 MB / 0.5543 GB, free: 29.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.4048, allocations: 10.16 kB / 0.5543 GB, free: 29.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.4049, allocations: 43.94 kB / 0.5544 GB, free: 29.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.4054, allocations: 339.4 kB / 0.5547 GB, free: 29.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.4054, allocations: 30.94 kB / 0.5547 GB, free: 29.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.834e-05/0.4055, allocations: 40.94 kB / 0.5548 GB, free: 29.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006244/0.4061, allocations: 421.7 kB / 0.5552 GB, free: 29.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.4061, allocations: 3.938 kB / 0.5552 GB, free: 29.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.4062, allocations: 26.02 kB / 0.5552 GB, free: 29.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.4062, allocations: 13.98 kB / 0.5552 GB, free: 29.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.4066, allocations: 228.3 kB / 0.5554 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.4081, allocations: 1.293 MB / 0.5567 GB, free: 28.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004464/0.4085, allocations: 302.6 kB / 0.557 GB, free: 28.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.4086, allocations: 3.25 kB / 0.557 GB, free: 28.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003433/0.4089, allocations: 252.2 kB / 0.5572 GB, free: 28.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.954e-06/0.409, allocations: 0 / 0.5572 GB, free: 28.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001057/0.41, allocations: 0.93 MB / 0.5581 GB, free: 27.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.4101, allocations: 152.1 kB / 0.5583 GB, free: 27.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.4103, allocations: 233 kB / 0.5585 GB, free: 27.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.4104, allocations: 48.45 kB / 0.5585 GB, free: 27.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.276e-05/0.4105, allocations: 194.4 kB / 0.5587 GB, free: 27.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.279e-05/0.4105, allocations: 100.4 kB / 0.5588 GB, free: 27.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.4106, allocations: 10.84 kB / 0.5588 GB, free: 27.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.4106, allocations: 349.2 kB / 0.5592 GB, free: 27.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.4108, allocations: 116.1 kB / 0.5593 GB, free: 27.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/0.4111, allocations: 276.4 kB / 0.5595 GB, free: 27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.4113, allocations: 223.4 kB / 0.5597 GB, free: 26.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.4114, allocations: 2.625 kB / 0.5597 GB, free: 26.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006853/0.4121, allocations: 0.5472 MB / 0.5603 GB, free: 26.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.4121, allocations: 65.3 kB / 0.5603 GB, free: 26.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.4121, allocations: 16.28 kB / 0.5604 GB, free: 26.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.4122, allocations: 6.094 kB / 0.5604 GB, free: 26.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.4123, allocations: 56.48 kB / 0.5604 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.4124, allocations: 14.83 kB / 0.5604 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.4125, allocations: 37.92 kB / 0.5605 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.4126, allocations: 22.75 kB / 0.5605 GB, free: 26.68 MB / 378.7 MB Warning: Assuming fixed start value for the following 5 variables: process.y[1]:DISCRETE(fixed = true ) type: Integer [3] process.y[2]:DISCRETE(fixed = true ) type: Integer [3] process.y[3]:DISCRETE(fixed = true ) type: Integer [3] tCPIPSend.dataSent:DISCRETE(fixed = true ) type: Integer tCPIPReceive.nReceivedBytes:DISCRETE(fixed = true ) "Number of received bytes" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.process.y[1],process.y[1],$PRE.process.y[2],process.y[2],$PRE.process.y[3],process.y[3],$PRE.tCPIPSend.dummy1,tCPIPSend.dummy1,$PRE.tCPIPSend.pkgSize,tCPIPSend.pkgSize,$PRE.tCPIPSend.dataSent,tCPIPSend.dataSent,$PRE.tCPIPSend.dummy2,tCPIPSend.dummy2,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[3],getInteger.y[3],$PRE.getInteger.y[2],getInteger.y[2],$PRE.getInteger.y[1],getInteger.y[1],$PRE.tCPIPReceive.pkgOut.dummy,tCPIPReceive.pkgOut.dummy,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,tCPIPReceive.actTrigger,$PRE.tCPIPReceive.nReceivedBytes,tCPIPReceive.nReceivedBytes,$PRE.tCPIPReceive.accepted,tCPIPReceive.accepted,$PRE.tCPIPReceive.block_,tCPIPReceive.block_,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,$PRE.tCPIPSend.accepted,tCPIPSend.accepted,$PRE.tCPIPSend.block_,tCPIPSend.block_,process.trigger,tCPIPSend.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addInteger.pkgIn.autoPkgBitSize,tCPIPSend.pkgIn.userPkgBitSize,tCPIPSend.pkgIn.autoPkgBitSize,tCPIPSend.bufferSize,tCPIPReceive.bufferSize,getInteger.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * 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.0002661/0.4129, allocations: 239.1 kB / 0.5607 GB, free: 26.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.4129, allocations: 29.22 kB / 0.5607 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.289e-05/0.413, allocations: 23.25 kB / 0.5608 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.413, allocations: 4.438 kB / 0.5608 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.413, allocations: 7.547 kB / 0.5608 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.413, allocations: 1.094 kB / 0.5608 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.414, allocations: 0.8712 MB / 0.5616 GB, free: 26.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.414, allocations: 1.438 kB / 0.5616 GB, free: 26.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.07e-05/0.4141, allocations: 12.75 kB / 0.5616 GB, free: 26.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4141, allocations: 2.781 kB / 0.5616 GB, free: 26.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.4141, allocations: 12.67 kB / 0.5617 GB, free: 26.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.4141, allocations: 5.406 kB / 0.5617 GB, free: 26.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4141, allocations: 9.328 kB / 0.5617 GB, free: 26.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000632/0.4148, allocations: 0.5526 MB / 0.5622 GB, free: 25.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.917e-05/0.4149, allocations: 113.2 kB / 0.5623 GB, free: 25.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.4149, allocations: 10.44 kB / 0.5623 GB, free: 25.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.415, allocations: 11.97 kB / 0.5623 GB, free: 25.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.625e-05/0.4151, allocations: 24.3 kB / 0.5624 GB, free: 25.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-05/0.4152, allocations: 17.34 kB / 0.5624 GB, free: 25.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001344/0.4153, allocations: 154 kB / 0.5625 GB, free: 25.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4153, allocations: 1.344 kB / 0.5625 GB, free: 25.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005346/0.4158, allocations: 162.3 kB / 0.5627 GB, free: 25.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 36 (tCPIPSend.internalTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addInteger.pkgIn.autoPkgBitSize,tCPIPSend.pkgIn.userPkgBitSize,tCPIPSend.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,process.trigger,tCPIPReceive.actTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,tCPIPReceive.pkgOut.dummy,tCPIPReceive.nReceivedBytes,tCPIPReceive.accepted,tCPIPReceive.bufferSize,tCPIPReceive.block_,getInteger.pkgIn.autoPkgBitSize,getInteger.y[1],getInteger.y[2],getInteger.y[3],getInteger.dummy,packager.pkgOut.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,tCPIPSend.dataSent,tCPIPSend.accepted,tCPIPSend.bufferSize,tCPIPSend.dummy1,tCPIPSend.dummy2,tCPIPSend.pkgSize,tCPIPSend.block_,process.y[1],process.y[2],process.y[3]) * Number of discrete states: 2 (tCPIPReceive.block_,tCPIPSend.block_) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 21 * 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.0008307/0.4167, allocations: 455.1 kB / 0.5631 GB, free: 25.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006514/0.4173, allocations: 490.2 kB / 0.5636 GB, free: 25.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4174, allocations: 3.938 kB / 0.5636 GB, free: 25.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002397/0.4176, allocations: 184.5 kB / 0.5638 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.4179, allocations: 36.62 kB / 0.5638 GB, free: 25.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009798/0.4189, allocations: 0.7351 MB / 0.5645 GB, free: 24.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.4193, allocations: 0.8222 MB / 0.5653 GB, free: 24.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.912e-05/0.4194, allocations: 39.55 kB / 0.5654 GB, free: 24.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.903e-05/0.4195, allocations: 26.22 kB / 0.5654 GB, free: 24.12 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.4195, allocations: 0 / 0.5654 GB, free: 24.12 MB / 378.7 MB Notification: Performance of Templates: time 0.008622/0.4281, allocations: 4.515 MB / 0.5698 GB, free: 22.2 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe 2>&1)