Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.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_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, 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.518/1.518, 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.000879/0.0008789, allocations: 101.8 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.05294/0.05294, allocations: 11.91 MB / 348.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.165e-05, allocations: 0 / 410.1 MB, free: 58.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1167, allocations: 53.36 MB / 463.5 MB, free: 4.922 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.532, allocations: 85.99 MB / 0.5366 GB, free: 13.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.5324, allocations: 77.2 kB / 0.5367 GB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02663/0.559, allocations: 9.467 MB / 0.5459 GB, free: 5.324 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5591, allocations: 0 / 0.5459 GB, free: 5.324 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.447e-05/0.5591, allocations: 8 kB / 0.5459 GB, free: 5.316 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = uDPReceive.pkgOut.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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001409/0.5605, allocations: 1.019 MB / 0.5469 GB, free: 4.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.5606, allocations: 12.59 kB / 0.5469 GB, free: 4.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.713e-05/0.5606, allocations: 47.39 kB / 0.547 GB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004687/0.5611, allocations: 337.4 kB / 0.5473 GB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.5612, allocations: 28.56 kB / 0.5473 GB, free: 3.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.5612, allocations: 43.61 kB / 0.5474 GB, free: 3.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000685/0.5619, allocations: 465.6 kB / 0.5478 GB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.562, allocations: 4 kB / 0.5478 GB, free: 3.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.562, allocations: 19.67 kB / 0.5478 GB, free: 3.473 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.562, allocations: 11.95 kB / 0.5478 GB, free: 3.461 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004074/0.5624, allocations: 248.3 kB / 0.5481 GB, free: 3.293 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.564, allocations: 1.363 MB / 0.5494 GB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004559/0.5645, allocations: 289.2 kB / 0.5497 GB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.5647, allocations: 160.8 kB / 0.5498 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.5648, allocations: 7.984 kB / 0.5498 GB, free: 1.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003375/0.5651, allocations: 260.1 kB / 0.5501 GB, free: 1.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.673e-06/0.5651, allocations: 4 kB / 0.5501 GB, free: 1.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007902/0.5659, allocations: 482.1 kB / 0.5505 GB, free: 1.059 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.171e-05/0.566, allocations: 151.1 kB / 0.5507 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.5662, allocations: 212.2 kB / 0.5509 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.5663, allocations: 47.31 kB / 0.5509 GB, free: 0.6602 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.5664, allocations: 199.4 kB / 0.5511 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.955e-05/0.5665, allocations: 107.6 kB / 0.5512 GB, free: 416 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.835e-05/0.5665, allocations: 6.75 kB / 0.5512 GB, free: 416 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.5667, allocations: 347.7 kB / 0.5516 GB, free: 72 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.5669, allocations: 114.5 kB / 0.5517 GB, free: 15.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.5672, allocations: 329.6 kB / 0.552 GB, free: 15.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003251/0.5675, allocations: 183.2 kB / 0.5522 GB, free: 15.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/0.5675, allocations: 0 / 0.5522 GB, free: 15.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007022/0.5682, allocations: 498 kB / 0.5526 GB, free: 15.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.5683, allocations: 8 kB / 0.5526 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.5683, allocations: 8 kB / 0.5527 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.5683, allocations: 8.812 kB / 0.5527 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.5686, allocations: 83.2 kB / 0.5527 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.142e-05/0.5686, allocations: 23.88 kB / 0.5528 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.5688, allocations: 45.34 kB / 0.5528 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.5689, allocations: 27.88 kB / 0.5528 GB, free: 14.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.uDPSend.dummy,uDPSend.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],$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.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.uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvbufOverwrites,$PRE.uDPReceive.nRecvBytes,uDPReceive.nRecvBytes,$PRE.uDPReceive.pkgOut.dummy,uDPReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,uDPSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001618/0.569, allocations: 176.1 kB / 0.553 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.5691, allocations: 31.7 kB / 0.553 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003797/0.5695, allocations: 229.7 kB / 0.5533 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.5695, allocations: 7.938 kB / 0.5533 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.5695, allocations: 4.062 kB / 0.5533 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5695, allocations: 7.953 kB / 0.5533 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/0.5708, allocations: 1.007 MB / 0.5543 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.5708, allocations: 11.94 kB / 0.5543 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.634e-05/0.5709, allocations: 11.98 kB / 0.5543 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.5709, allocations: 4 kB / 0.5543 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.5709, allocations: 14.88 kB / 0.5543 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.543e-06/0.5709, allocations: 7.938 kB / 0.5543 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.571, allocations: 0 / 0.5543 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007994/0.5718, allocations: 0.68 MB / 0.555 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.811e-05/0.5718, allocations: 108.7 kB / 0.5551 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.5719, allocations: 8 kB / 0.5551 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.572, allocations: 3.984 kB / 0.5551 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/0.5721, allocations: 27.91 kB / 0.5551 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.5722, allocations: 23.98 kB / 0.5551 GB, free: 12.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001043/0.5723, allocations: 131 kB / 0.5553 GB, free: 12.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5723, allocations: 0 / 0.5553 GB, free: 12.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000647/0.5729, allocations: 171.8 kB / 0.5554 GB, free: 12.4 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: 37 (getFloat.pkgOut[1].trigger,$whenCondition1,uDPReceive.pkgOut.dummy,uDPReceive.nRecvBytes,uDPReceive.nRecvbufOverwrites,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * 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.0007315/0.5737, allocations: 373.1 kB / 0.5558 GB, free: 12.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000598/0.5743, allocations: 349.7 kB / 0.5561 GB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.5743, allocations: 0.5 kB / 0.5561 GB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.5745, allocations: 179.8 kB / 0.5563 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.575, allocations: 55.88 kB / 0.5563 GB, free: 11.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.5768, allocations: 0.6769 MB / 0.557 GB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.5773, allocations: 0.8229 MB / 0.5578 GB, free: 9.949 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.5774, allocations: 51.25 kB / 0.5578 GB, free: 9.898 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.701e-05/0.5775, allocations: 27.42 kB / 0.5579 GB, free: 9.871 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5775, allocations: 0 / 0.5579 GB, free: 9.871 MB / 378.7 MB Notification: Performance of Templates: time 0.009394/0.5869, allocations: 4.968 MB / 0.5627 GB, free: 4.969 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe 2>&1)