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.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_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.001311/0.001311, allocations: 171.4 kB / 16.8 MB, free: 5.02 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.417/1.417, allocations: 223.3 MB / 240.8 MB, free: 9.984 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.0008062/0.0008062, allocations: 97.38 kB / 292 MB, free: 10.56 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.05301/0.05301, allocations: 12.05 MB / 355.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003506, allocations: 15.94 kB / 419.2 MB, free: 53.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08806/0.08843, allocations: 53.35 MB / 472.5 MB, free: 212 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.31/0.3985, allocations: 86.08 MB / 0.5455 GB, free: 11.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.3988, allocations: 79.97 kB / 0.5456 GB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0263/0.4251, allocations: 9.526 MB / 0.5549 GB, free: 1.852 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4251, allocations: 0 / 0.5549 GB, free: 1.852 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.189e-05/0.4252, allocations: 12 kB / 0.5549 GB, free: 1.84 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.001743/0.4269, allocations: 1.03 MB / 0.5559 GB, free: 0.707 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.427, allocations: 8.031 kB / 0.5559 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.4271, allocations: 48.38 kB / 0.556 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.4276, allocations: 352.4 kB / 0.5563 GB, free: 276 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.375e-05/0.4277, allocations: 29.38 kB / 0.5563 GB, free: 244 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.957e-05/0.4278, allocations: 40.36 kB / 0.5564 GB, free: 204 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008146/0.4286, allocations: 480.1 kB / 0.5568 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.4286, allocations: 192 / 0.5568 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.19e-05/0.4287, allocations: 19.94 kB / 0.5568 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.4287, allocations: 16 kB / 0.5569 GB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.4292, allocations: 251.8 kB / 0.5571 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.431, allocations: 1.355 MB / 0.5584 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005339/0.4315, allocations: 301.6 kB / 0.5587 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.4318, allocations: 151.4 kB / 0.5588 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.4318, allocations: 15.98 kB / 0.5589 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.4322, allocations: 255.4 kB / 0.5591 GB, free: 13.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.304e-06/0.4322, allocations: 3.938 kB / 0.5591 GB, free: 13.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001086/0.4333, allocations: 0.59 MB / 0.5597 GB, free: 12.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.4335, allocations: 152.5 kB / 0.5598 GB, free: 12.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.4337, allocations: 234.9 kB / 0.5601 GB, free: 12.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.4338, allocations: 53.62 kB / 0.5601 GB, free: 12.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.4339, allocations: 200.3 kB / 0.5603 GB, free: 11.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.4341, allocations: 106.7 kB / 0.5604 GB, free: 11.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.4341, allocations: 12 kB / 0.5604 GB, free: 11.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4343, allocations: 342.8 kB / 0.5607 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.4345, allocations: 121 kB / 0.5609 GB, free: 11.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.4349, allocations: 332.1 kB / 0.5612 GB, free: 10.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.4355, allocations: 498.3 kB / 0.5616 GB, free: 10.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.4355, allocations: 4 kB / 0.5616 GB, free: 10.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008155/0.4364, allocations: 0.5008 MB / 0.5621 GB, free: 9.859 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.4364, allocations: 10.5 kB / 0.5621 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.4364, allocations: 8.078 kB / 0.5622 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.4364, allocations: 12 kB / 0.5622 GB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/0.4367, allocations: 79.83 kB / 0.5622 GB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.645e-05/0.4367, allocations: 15.92 kB / 0.5623 GB, free: 9.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.4369, allocations: 35.69 kB / 0.5623 GB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/0.437, allocations: 32.36 kB / 0.5623 GB, free: 9.672 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 () * Number of clocked 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.0002865/0.4373, allocations: 237.7 kB / 0.5625 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.4373, allocations: 35.61 kB / 0.5626 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004407/0.4378, allocations: 231.4 kB / 0.5628 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.4378, allocations: 12.03 kB / 0.5628 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.4378, allocations: 0 / 0.5628 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.4378, allocations: 4.094 kB / 0.5628 GB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.4392, allocations: 1.021 MB / 0.5638 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4393, allocations: 4 kB / 0.5638 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.83e-05/0.4393, allocations: 11.98 kB / 0.5638 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.4393, allocations: 4 kB / 0.5638 GB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.4394, allocations: 15.98 kB / 0.5639 GB, free: 8.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.4394, allocations: 7.938 kB / 0.5639 GB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.4394, allocations: 0 / 0.5639 GB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009053/0.4403, allocations: 0.6475 MB / 0.5645 GB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.684e-05/0.4404, allocations: 104.8 kB / 0.5646 GB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.107e-05/0.4405, allocations: 12 kB / 0.5646 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.4406, allocations: 15.92 kB / 0.5646 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.536e-05/0.4407, allocations: 19.91 kB / 0.5646 GB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.007e-05/0.4407, allocations: 19.98 kB / 0.5647 GB, free: 7.164 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001216/0.4409, allocations: 143 kB / 0.5648 GB, free: 7.023 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4409, allocations: 0 / 0.5648 GB, free: 7.023 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007541/0.4416, allocations: 179.5 kB / 0.565 GB, free: 6.848 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 () * Number of clocked 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.0009284/0.4426, allocations: 364.9 kB / 0.5653 GB, free: 6.543 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006514/0.4432, allocations: 369 kB / 0.5657 GB, free: 6.184 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4432, allocations: 4.125 kB / 0.5657 GB, free: 6.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.4435, allocations: 155.9 kB / 0.5658 GB, free: 6.027 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00059/0.4441, allocations: 72.94 kB / 0.5659 GB, free: 5.957 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.4465, allocations: 0.9604 MB / 0.5668 GB, free: 4.961 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005255/0.447, allocations: 0.819 MB / 0.5676 GB, free: 4.117 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.4472, allocations: 50.94 kB / 0.5677 GB, free: 4.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.4473, allocations: 27.44 kB / 0.5677 GB, free: 4.043 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.4473, allocations: 0 / 0.5677 GB, free: 4.043 MB / 378.7 MB Notification: Performance of Templates: time 0.01094/0.4582, allocations: 4.984 MB / 0.5726 GB, free: 15.13 MB / 394.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)