Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.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_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 176.3 kB / 16.8 MB, free: 5.004 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.465/1.465, allocations: 223.3 MB / 240.8 MB, free: 11.73 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.0008789/0.0008791, allocations: 100.5 kB / 292 MB, free: 10.8 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.06304/0.06304, allocations: 12.04 MB / 355.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003549, allocations: 12.5 kB / 419.2 MB, free: 53.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07061/0.07098, allocations: 53.36 MB / 472.5 MB, free: 256 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2662/0.3372, allocations: 85.77 MB / 0.5452 GB, free: 11.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.3375, allocations: 73.44 kB / 0.5453 GB, free: 11.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02527/0.3628, allocations: 8.945 MB / 0.554 GB, free: 2.797 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3628, allocations: 7.938 kB / 0.554 GB, free: 2.789 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.3628, allocations: 19.94 kB / 0.554 GB, free: 2.77 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = tcpipClient.pkgIn.pkg getReal.pkgIn.pkg = tcpipClient.pkgOut.pkg getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg addReal.pkgIn.pkg = packager.pkgOut.pkg getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001524/0.3644, allocations: 1.016 MB / 0.555 GB, free: 1.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3644, allocations: 8.031 kB / 0.555 GB, free: 1.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.986e-05/0.3645, allocations: 44.38 kB / 0.5551 GB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.365, allocations: 333 kB / 0.5554 GB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.3651, allocations: 25.38 kB / 0.5554 GB, free: 1.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.3651, allocations: 40.36 kB / 0.5555 GB, free: 1.168 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007529/0.3659, allocations: 456.3 kB / 0.5559 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3659, allocations: 4.188 kB / 0.5559 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-05/0.366, allocations: 23.92 kB / 0.5559 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.366, allocations: 8 kB / 0.5559 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004335/0.3664, allocations: 242 kB / 0.5562 GB, free: 440 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.368, allocations: 1.233 MB / 0.5574 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.3685, allocations: 255.7 kB / 0.5576 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.3687, allocations: 149.7 kB / 0.5578 GB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.3688, allocations: 19.88 kB / 0.5578 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.3691, allocations: 226 kB / 0.558 GB, free: 14.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.445e-06/0.3691, allocations: 0 / 0.558 GB, free: 14.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.0009166/0.37, allocations: 0.5359 MB / 0.5585 GB, free: 13.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/0.3701, allocations: 130.8 kB / 0.5586 GB, free: 13.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.3703, allocations: 211.3 kB / 0.5588 GB, free: 13.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.3703, allocations: 41.7 kB / 0.5589 GB, free: 13.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3705, allocations: 196.3 kB / 0.5591 GB, free: 13.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.758e-05/0.3705, allocations: 90.89 kB / 0.5592 GB, free: 13.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.586e-05/0.3706, allocations: 8 kB / 0.5592 GB, free: 13.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3707, allocations: 338.8 kB / 0.5595 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.3709, allocations: 101.1 kB / 0.5596 GB, free: 12.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.3712, allocations: 298.2 kB / 0.5599 GB, free: 12.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005098/0.3717, allocations: 447.6 kB / 0.5603 GB, free: 11.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3717, allocations: 0 / 0.5603 GB, free: 11.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006571/0.3724, allocations: 437.4 kB / 0.5607 GB, free: 11.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3724, allocations: 8 kB / 0.5607 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.3724, allocations: 12 kB / 0.5607 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.3724, allocations: 15.98 kB / 0.5607 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/0.3727, allocations: 67.84 kB / 0.5608 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.3727, allocations: 19.88 kB / 0.5608 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001538/0.3729, allocations: 31.69 kB / 0.5609 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.3729, allocations: 27.98 kB / 0.5609 GB, free: 11.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 50 ($PRE.getFloat.dummy,getFloat.dummy,$PRE.getFloat.y[2],getFloat.y[2],$PRE.getFloat.y[1],getFloat.y[1],$PRE.getFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getReal.dummy,getReal.dummy,$PRE.getReal.y[3],getReal.y[3],$PRE.getReal.y[2],getReal.y[2],$PRE.getReal.y[1],getReal.y[1],$PRE.getReal.pkgOut[1].dummy,getReal.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.tcpipClient.pkgOut.dummy,tcpipClient.pkgOut.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition2,$whenCondition1,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],tcpipClient.isConnected,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,tcpipClient.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * 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.0002294/0.3731, allocations: 223.1 kB / 0.5611 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.3732, allocations: 27.7 kB / 0.5611 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005719/0.3738, allocations: 371.9 kB / 0.5615 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3738, allocations: 7.938 kB / 0.5615 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3738, allocations: 0 / 0.5615 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3738, allocations: 0 / 0.5615 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.3749, allocations: 0.885 MB / 0.5623 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3749, allocations: 0 / 0.5623 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.68e-05/0.375, allocations: 19.98 kB / 0.5624 GB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.375, allocations: 0 / 0.5624 GB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.375, allocations: 7.984 kB / 0.5624 GB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.375, allocations: 4 kB / 0.5624 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3751, allocations: 0 / 0.5624 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000688/0.3757, allocations: 0.5515 MB / 0.5629 GB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.529e-05/0.3758, allocations: 104.8 kB / 0.563 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.3759, allocations: 4 kB / 0.563 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.376, allocations: 11.98 kB / 0.563 GB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.376, allocations: 15.92 kB / 0.563 GB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.3761, allocations: 19.98 kB / 0.5631 GB, free: 8.879 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.715e-05/0.3762, allocations: 124.1 kB / 0.5632 GB, free: 8.754 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3762, allocations: 0 / 0.5632 GB, free: 8.754 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005721/0.3768, allocations: 171.5 kB / 0.5633 GB, free: 8.586 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: 32 (getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].backwardTrigger,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,tcpipClient.pkgOut.dummy,tcpipClient.isConnected,addInteger.pkgOut[1].dummy,addInteger.u[1],getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,tcpipClient.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0007803/0.3775, allocations: 383.9 kB / 0.5637 GB, free: 8.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005071/0.3781, allocations: 324.8 kB / 0.564 GB, free: 7.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3781, allocations: 0 / 0.564 GB, free: 7.953 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.3783, allocations: 152.9 kB / 0.5642 GB, free: 7.805 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.3788, allocations: 68.88 kB / 0.5642 GB, free: 7.738 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.3804, allocations: 0.8239 MB / 0.565 GB, free: 6.887 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.3807, allocations: 0.8032 MB / 0.5658 GB, free: 6.059 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.3809, allocations: 51.25 kB / 0.5659 GB, free: 6.008 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.726e-05/0.381, allocations: 27.42 kB / 0.5659 GB, free: 5.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.381, allocations: 0 / 0.5659 GB, free: 5.98 MB / 378.7 MB Notification: Performance of Templates: time 0.008845/0.3898, allocations: 4.636 MB / 0.5704 GB, free: 1.379 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.pipe 2>&1)