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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.0008281/0.0008282, allocations: 176.5 kB / 16.8 MB, free: 4.902 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.212/1.212, allocations: 223.3 MB / 240.8 MB, free: 9.961 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.0007573/0.0007573, allocations: 88.42 kB / 292 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05308/0.05308, allocations: 12.05 MB / 355.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003614/0.0003614, allocations: 12 kB / 419.2 MB, free: 53.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07302/0.0734, allocations: 53.35 MB / 472.5 MB, free: 212 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2723/0.3458, allocations: 87.12 MB / 0.5465 GB, free: 10.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.346, allocations: 76.59 kB / 0.5466 GB, free: 10.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02156/0.3676, allocations: 8.334 MB / 0.5547 GB, free: 1.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3676, allocations: 0 / 0.5547 GB, free: 1.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.993e-05/0.3677, allocations: 8 kB / 0.5547 GB, free: 1.973 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.001422/0.3691, allocations: 0.843 MB / 0.5556 GB, free: 1.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3692, allocations: 16.02 kB / 0.5556 GB, free: 1.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.3693, allocations: 44.47 kB / 0.5556 GB, free: 0.9883 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.3698, allocations: 347.6 kB / 0.556 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.3699, allocations: 37.36 kB / 0.556 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.773e-05/0.3699, allocations: 36.38 kB / 0.556 GB, free: 0.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.3706, allocations: 424.8 kB / 0.5564 GB, free: 104 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3706, allocations: 4.188 kB / 0.5564 GB, free: 100 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.3707, allocations: 19.94 kB / 0.5565 GB, free: 80 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3707, allocations: 8 kB / 0.5565 GB, free: 72 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000425/0.3711, allocations: 229.3 kB / 0.5567 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.3727, allocations: 1.295 MB / 0.5579 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004839/0.3732, allocations: 302.5 kB / 0.5582 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.3735, allocations: 147.4 kB / 0.5584 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.3735, allocations: 4 kB / 0.5584 GB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003635/0.3739, allocations: 267.1 kB / 0.5586 GB, free: 13.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 4.678e-06/0.3739, allocations: 0 / 0.5586 GB, free: 13.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009567/0.3749, allocations: 0.5225 MB / 0.5591 GB, free: 13.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/0.3749, allocations: 156.4 kB / 0.5593 GB, free: 12.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/0.3752, allocations: 252.8 kB / 0.5595 GB, free: 12.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.3753, allocations: 45.83 kB / 0.5596 GB, free: 12.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3754, allocations: 196.4 kB / 0.5598 GB, free: 12.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.601e-05/0.3755, allocations: 106.8 kB / 0.5599 GB, free: 12.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.3755, allocations: 8 kB / 0.5599 GB, free: 12.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3757, allocations: 346.8 kB / 0.5602 GB, free: 12.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.376, allocations: 117.1 kB / 0.5603 GB, free: 11.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.3763, allocations: 272.8 kB / 0.5606 GB, free: 11.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008302/0.3771, allocations: 0.675 MB / 0.5612 GB, free: 10.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3771, allocations: 0 / 0.5612 GB, free: 10.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008377/0.378, allocations: 0.5602 MB / 0.5618 GB, free: 10.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.858e-05/0.378, allocations: 65.42 kB / 0.5618 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.3781, allocations: 8 kB / 0.5619 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.3781, allocations: 8 kB / 0.5619 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.3783, allocations: 64.41 kB / 0.5619 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.3783, allocations: 15.94 kB / 0.5619 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.3785, allocations: 35.69 kB / 0.562 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.3786, allocations: 27.98 kB / 0.562 GB, free: 9.996 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,$PRE.tCPIPReceive.nReceivedBytes,$PRE.tCPIPReceive.accepted,$PRE.tCPIPReceive.block_,$PRE.tCPIPSend.accepted,$PRE.tCPIPSend.block_,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,tCPIPReceive.actTrigger,tCPIPReceive.nReceivedBytes,tCPIPReceive.accepted,tCPIPReceive.block_,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,tCPIPSend.accepted,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.0003238/0.3789, allocations: 223.8 kB / 0.5622 GB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.706e-05/0.379, allocations: 35.67 kB / 0.5622 GB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.267e-05/0.379, allocations: 30.95 kB / 0.5623 GB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.379, allocations: 7.938 kB / 0.5623 GB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.3791, allocations: 0 / 0.5623 GB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3791, allocations: 4 kB / 0.5623 GB, free: 9.691 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.3803, allocations: 0.8732 MB / 0.5631 GB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.3803, allocations: 7.984 kB / 0.5631 GB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.403e-05/0.3803, allocations: 8 kB / 0.5632 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3804, allocations: 0 / 0.5632 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3804, allocations: 7.984 kB / 0.5632 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.3804, allocations: 4 kB / 0.5632 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3804, allocations: 7.875 kB / 0.5632 GB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006828/0.3811, allocations: 0.5264 MB / 0.5637 GB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.119e-05/0.3812, allocations: 104.8 kB / 0.5638 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.3812, allocations: 7.984 kB / 0.5638 GB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.3813, allocations: 8 kB / 0.5638 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.075e-05/0.3814, allocations: 27.91 kB / 0.5638 GB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.944e-05/0.3815, allocations: 19.92 kB / 0.5638 GB, free: 7.992 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001432/0.3816, allocations: 160.5 kB / 0.564 GB, free: 7.832 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3816, allocations: 0 / 0.564 GB, free: 7.832 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005292/0.3821, allocations: 159.5 kB / 0.5642 GB, free: 7.676 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.0008321/0.383, allocations: 462 kB / 0.5646 GB, free: 7.328 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000682/0.3837, allocations: 489 kB / 0.5651 GB, free: 6.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3837, allocations: 0 / 0.5651 GB, free: 6.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.384, allocations: 182.3 kB / 0.5652 GB, free: 6.637 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.3844, allocations: 43.47 kB / 0.5653 GB, free: 6.598 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.3855, allocations: 0.7429 MB / 0.566 GB, free: 5.824 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.3858, allocations: 0.815 MB / 0.5668 GB, free: 4.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.386, allocations: 42.95 kB / 0.5668 GB, free: 4.938 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.386, allocations: 27.38 kB / 0.5669 GB, free: 4.91 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.386, allocations: 0 / 0.5669 GB, free: 4.91 MB / 378.7 MB Notification: Performance of Templates: time 0.008416/0.3944, allocations: 4.528 MB / 0.5713 GB, free: 432 kB / 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)