Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.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_UDPExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 180.7 kB / 15.8 MB, free: 6.34 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.365/1.365, allocations: 223.2 MB / 239.7 MB, free: 48 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008945/0.0008946, allocations: 99.5 kB / 290.9 MB, free: 4.562 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.0533/0.0533, allocations: 12.05 MB / 354.1 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002765, allocations: 12 kB / 417.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2007, allocations: 53.36 MB / 471.2 MB, free: 65.12 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09414/0.2949, allocations: 86.71 MB / 0.5449 GB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.2951, allocations: 75.97 kB / 0.545 GB, free: 10.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02626/0.3214, allocations: 9.967 MB / 0.5547 GB, free: 228 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3215, allocations: 0 / 0.5547 GB, free: 228 kB / 378.7 MB Notification: Performance of Transformations before backend: time 2.806e-05/0.3215, allocations: 8 kB / 0.5547 GB, free: 220 kB / 378.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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.2084/0.5299, allocations: 1.033 MB / 0.5557 GB, free: 85.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.53, allocations: 9 kB / 0.5557 GB, free: 85.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.5301, allocations: 55.28 kB / 0.5558 GB, free: 85.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006049/0.5307, allocations: 339.1 kB / 0.5561 GB, free: 85.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-05/0.5308, allocations: 30.33 kB / 0.5561 GB, free: 85.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.046e-05/0.5309, allocations: 43.92 kB / 0.5562 GB, free: 85.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009713/0.5319, allocations: 487.5 kB / 0.5566 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.5319, allocations: 3.594 kB / 0.5566 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.599e-05/0.532, allocations: 19.64 kB / 0.5566 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.532, allocations: 12.25 kB / 0.5567 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005421/0.5325, allocations: 259.2 kB / 0.5569 GB, free: 85.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.5342, allocations: 1.43 MB / 0.5583 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.5348, allocations: 301.8 kB / 0.5586 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.5348, allocations: 18.31 kB / 0.5586 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003793/0.5352, allocations: 252.6 kB / 0.5588 GB, free: 84.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.445e-06/0.5352, allocations: 1.375 kB / 0.5588 GB, free: 84.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001224/0.5365, allocations: 0.895 MB / 0.5597 GB, free: 83.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.801e-05/0.5366, allocations: 184.5 kB / 0.5599 GB, free: 83.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.5368, allocations: 223.9 kB / 0.5601 GB, free: 83.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.5368, allocations: 49.95 kB / 0.5602 GB, free: 83.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.537, allocations: 208.7 kB / 0.5604 GB, free: 83.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.5371, allocations: 108 kB / 0.5605 GB, free: 83.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.004e-05/0.5371, allocations: 7.062 kB / 0.5605 GB, free: 83.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.516e-05/0.5372, allocations: 346.4 kB / 0.5608 GB, free: 82.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.5375, allocations: 117.4 kB / 0.5609 GB, free: 82.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003223/0.5378, allocations: 332 kB / 0.5612 GB, free: 82.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.5381, allocations: 180.6 kB / 0.5614 GB, free: 82.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.5381, allocations: 2.438 kB / 0.5614 GB, free: 82.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008357/0.5389, allocations: 0.4992 MB / 0.5619 GB, free: 82.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.539, allocations: 7.375 kB / 0.5619 GB, free: 82.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.539, allocations: 14.69 kB / 0.5619 GB, free: 82.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.892e-05/0.539, allocations: 12.98 kB / 0.5619 GB, free: 82.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.5393, allocations: 83.67 kB / 0.562 GB, free: 82.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.459e-05/0.5393, allocations: 15.66 kB / 0.562 GB, free: 82.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.5395, allocations: 31.44 kB / 0.562 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.5396, allocations: 26.72 kB / 0.5621 GB, free: 82.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 59 ($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.uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvbufOverwrites,$PRE.uDPReceive.nRecvBytes,uDPReceive.nRecvBytes,$PRE.uDPReceive.pkgOut.dummy,uDPReceive.pkgOut.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,addInteger.u[1],$whenCondition2,$whenCondition1,addInteger.pkgOut[1].trigger,sampleTrigger.y,uDPReceive.internalTrigger,uDPSend.internalTrigger,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 (67): * Single equations (assignments): 67 * 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.000268/0.5399, allocations: 235.9 kB / 0.5623 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.684e-05/0.5399, allocations: 36.67 kB / 0.5623 GB, free: 82.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006214/0.5405, allocations: 378.3 kB / 0.5627 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.5406, allocations: 12.69 kB / 0.5627 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.5406, allocations: 3.234 kB / 0.5627 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.5406, allocations: 6.734 kB / 0.5627 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.5419, allocations: 0.9374 MB / 0.5636 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.542, allocations: 1.281 kB / 0.5636 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-05/0.542, allocations: 10.5 kB / 0.5636 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.542, allocations: 3.375 kB / 0.5636 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.202e-05/0.5421, allocations: 15.66 kB / 0.5637 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.5421, allocations: 1.719 kB / 0.5637 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.5421, allocations: 1.625 kB / 0.5637 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00079/0.5429, allocations: 0.6467 MB / 0.5643 GB, free: 81.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.93e-05/0.5429, allocations: 113.8 kB / 0.5644 GB, free: 81.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.543, allocations: 12.09 kB / 0.5644 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.5431, allocations: 5.859 kB / 0.5644 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.879e-05/0.5432, allocations: 21.73 kB / 0.5644 GB, free: 81.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.336e-05/0.5432, allocations: 20.39 kB / 0.5645 GB, free: 81.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001039/0.5434, allocations: 145 kB / 0.5646 GB, free: 81.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5434, allocations: 0 / 0.5646 GB, free: 81.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006368/0.544, allocations: 173.2 kB / 0.5648 GB, free: 81.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 38 (uDPSend.internalTrigger,uDPReceive.internalTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,sampleTrigger.y,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],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,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.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 (35): * Single equations (assignments): 12 * 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.0007141/0.5447, allocations: 380.4 kB / 0.5651 GB, free: 80.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007864/0.5455, allocations: 362.2 kB / 0.5655 GB, free: 80.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5455, allocations: 0 / 0.5655 GB, free: 80.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.5459, allocations: 174.2 kB / 0.5656 GB, free: 80.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.5463, allocations: 66.66 kB / 0.5657 GB, free: 80.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.5482, allocations: 0.9691 MB / 0.5666 GB, free: 80.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.5485, allocations: 0.8266 MB / 0.5675 GB, free: 79.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.5486, allocations: 46.2 kB / 0.5675 GB, free: 79.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.286e-05/0.5487, allocations: 36.98 kB / 0.5675 GB, free: 79.41 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5487, allocations: 0 / 0.5675 GB, free: 79.41 MB / 378.7 MB Notification: Performance of Templates: time 0.008212/0.5569, allocations: 5.004 MB / 0.5724 GB, free: 79.01 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe 2>&1)