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.00146/0.001461, allocations: 182.3 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.334/1.334, allocations: 221.4 MB / 235.1 MB, free: 14.45 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.0008226/0.0008225, allocations: 91.3 kB / 286.1 MB, free: 13.01 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.05082/0.05082, allocations: 11.91 MB / 348.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.382e-05/2.384e-05, allocations: 0 / 410.1 MB, free: 58.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07515/0.07519, allocations: 53.35 MB / 463.5 MB, free: 4.918 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3084/0.3836, allocations: 87.03 MB / 0.5376 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.3839, allocations: 74.16 kB / 0.5377 GB, free: 12.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02047/0.4043, allocations: 8.287 MB / 0.5458 GB, free: 5.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4044, allocations: 0 / 0.5458 GB, free: 5.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.749e-05/0.4044, allocations: 8 kB / 0.5458 GB, free: 5.262 MB / 362.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.00125/0.4057, allocations: 0.8277 MB / 0.5466 GB, free: 4.426 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4058, allocations: 11.97 kB / 0.5466 GB, free: 4.414 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.258e-05/0.4058, allocations: 55.31 kB / 0.5466 GB, free: 4.363 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.4063, allocations: 336.4 kB / 0.547 GB, free: 4.031 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.4064, allocations: 24.66 kB / 0.547 GB, free: 4.016 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.4064, allocations: 43.36 kB / 0.547 GB, free: 3.984 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000637/0.4071, allocations: 412.3 kB / 0.5474 GB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.4071, allocations: 0 / 0.5474 GB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.003e-05/0.4071, allocations: 19.7 kB / 0.5474 GB, free: 3.648 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.4072, allocations: 11.95 kB / 0.5474 GB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003804/0.4076, allocations: 222.1 kB / 0.5477 GB, free: 3.488 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.409, allocations: 1.292 MB / 0.5489 GB, free: 2.305 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004536/0.4095, allocations: 296.9 kB / 0.5492 GB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.4097, allocations: 148.4 kB / 0.5493 GB, free: 1.945 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.4097, allocations: 4 kB / 0.5493 GB, free: 1.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.4101, allocations: 249.3 kB / 0.5496 GB, free: 1.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.843e-06/0.4101, allocations: 4 kB / 0.5496 GB, free: 1.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006771/0.4108, allocations: 422.5 kB / 0.55 GB, free: 1.391 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.4109, allocations: 159 kB / 0.5501 GB, free: 1.211 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.4111, allocations: 232.3 kB / 0.5504 GB, free: 1.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.4112, allocations: 43.64 kB / 0.5504 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.4113, allocations: 197.3 kB / 0.5506 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.434e-05/0.4114, allocations: 106.1 kB / 0.5507 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.4114, allocations: 11.25 kB / 0.5507 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4115, allocations: 350.5 kB / 0.551 GB, free: 400 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.4117, allocations: 109.4 kB / 0.5511 GB, free: 328 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.412, allocations: 264.4 kB / 0.5514 GB, free: 44 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.4123, allocations: 215.8 kB / 0.5516 GB, free: 15.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.4123, allocations: 0 / 0.5516 GB, free: 15.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007548/0.4131, allocations: 0.5434 MB / 0.5521 GB, free: 15.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.465e-05/0.4132, allocations: 66.83 kB / 0.5522 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/0.4132, allocations: 11.94 kB / 0.5522 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.4132, allocations: 11.94 kB / 0.5522 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.4134, allocations: 63.16 kB / 0.5523 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.4134, allocations: 8 kB / 0.5523 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.4136, allocations: 38.38 kB / 0.5523 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.4137, allocations: 27.44 kB / 0.5524 GB, free: 15.19 MB / 378.7 MB Warning: Assuming fixed start value for the following 5 variables: process.y[1]:DISCRETE(fixed = false ) type: Integer [3] process.y[2]:DISCRETE(fixed = false ) type: Integer [3] process.y[3]:DISCRETE(fixed = false ) type: Integer [3] tCPIPSend.dataSent:DISCRETE(fixed = false ) type: Integer tCPIPReceive.nReceivedBytes:DISCRETE(fixed = false ) "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 () * 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.0002084/0.4139, allocations: 181.6 kB / 0.5525 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.775e-05/0.4139, allocations: 35.61 kB / 0.5526 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.295e-05/0.414, allocations: 28.41 kB / 0.5526 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.414, allocations: 7.984 kB / 0.5526 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.414, allocations: 0 / 0.5526 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.414, allocations: 8 kB / 0.5526 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.4151, allocations: 0.8549 MB / 0.5534 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4151, allocations: 4.125 kB / 0.5534 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.213e-05/0.4152, allocations: 11.98 kB / 0.5534 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.4152, allocations: 4 kB / 0.5535 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.4152, allocations: 11.61 kB / 0.5535 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.4152, allocations: 7.953 kB / 0.5535 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4152, allocations: 0 / 0.5535 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006386/0.4159, allocations: 0.5604 MB / 0.554 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.006e-05/0.416, allocations: 111.8 kB / 0.5541 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.661e-05/0.416, allocations: 11.12 kB / 0.5541 GB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.4161, allocations: 11.05 kB / 0.5541 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.014e-05/0.4162, allocations: 19.16 kB / 0.5542 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.613e-05/0.4162, allocations: 15.98 kB / 0.5542 GB, free: 13.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001334/0.4164, allocations: 156.3 kB / 0.5543 GB, free: 13.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4164, allocations: 0 / 0.5543 GB, free: 13.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005083/0.4169, allocations: 157.9 kB / 0.5545 GB, free: 13.22 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_) * 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.0008975/0.4178, allocations: 444.8 kB / 0.5549 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.4184, allocations: 486.2 kB / 0.5554 GB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4184, allocations: 4 kB / 0.5554 GB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.4187, allocations: 174.9 kB / 0.5555 GB, free: 12.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.419, allocations: 40.3 kB / 0.5556 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008315/0.4198, allocations: 485.8 kB / 0.556 GB, free: 11.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.4203, allocations: 0.8268 MB / 0.5568 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.844e-05/0.4204, allocations: 34.97 kB / 0.5569 GB, free: 10.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.579e-05/0.4204, allocations: 27.42 kB / 0.5569 GB, free: 10.87 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4204, allocations: 0 / 0.5569 GB, free: 10.87 MB / 378.7 MB Notification: Performance of Templates: time 0.008527/0.429, allocations: 4.517 MB / 0.5613 GB, free: 6.395 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)