Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.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_UDPWithoutReceiveThread,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 181.5 kB / 8.048 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 221.5 MB / 230 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000821/0.0008209, allocations: 100.6 kB / 280.9 MB, free: 5.281 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.05117/0.05117, allocations: 11.92 MB / 343.6 MB, free: 3.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.278e-05, allocations: 2.812 kB / 403.1 MB, free: 45.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 53.36 MB / 456.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3894/0.4991, allocations: 85.58 MB / 0.5293 GB, free: 16.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.4993, allocations: 73.34 kB / 0.5294 GB, free: 16.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02467/0.524, allocations: 9.572 MB / 0.5388 GB, free: 16.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.524, allocations: 0 / 0.5388 GB, free: 16.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.5241, allocations: 15.53 kB / 0.5388 GB, free: 16.09 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001134/0.5252, allocations: 1.009 MB / 0.5398 GB, free: 15.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.5253, allocations: 7.75 kB / 0.5398 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.199e-05/0.5253, allocations: 53.58 kB / 0.5398 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.5257, allocations: 336.3 kB / 0.5401 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.5258, allocations: 18.81 kB / 0.5402 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.5259, allocations: 29.06 kB / 0.5402 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003865/0.5263, allocations: 220 kB / 0.5404 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.5269, allocations: 438.5 kB / 0.5408 GB, free: 15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.5269, allocations: 3.844 kB / 0.5408 GB, free: 15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.567e-05/0.5269, allocations: 7.219 kB / 0.5408 GB, free: 15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.5269, allocations: 15.34 kB / 0.5408 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.5281, allocations: 1.339 MB / 0.5422 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.5285, allocations: 284 kB / 0.5424 GB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.5287, allocations: 150.2 kB / 0.5426 GB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.5287, allocations: 4.062 kB / 0.5426 GB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.529, allocations: 249.3 kB / 0.5428 GB, free: 13.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 1.953e-06/0.529, allocations: 0 / 0.5428 GB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0009634/0.53, allocations: 478.3 kB / 0.5433 GB, free: 13.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.886e-05/0.53, allocations: 181.2 kB / 0.5434 GB, free: 13.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.5302, allocations: 212.1 kB / 0.5436 GB, free: 13.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.5303, allocations: 46.41 kB / 0.5437 GB, free: 13.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.689e-05/0.5304, allocations: 209.3 kB / 0.5439 GB, free: 13.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.978e-05/0.5305, allocations: 96.06 kB / 0.544 GB, free: 13.31 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.774e-05/0.5305, allocations: 0 / 0.544 GB, free: 13.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.5306, allocations: 345.9 kB / 0.5443 GB, free: 13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.5308, allocations: 103.1 kB / 0.5444 GB, free: 13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.531, allocations: 327.7 kB / 0.5447 GB, free: 12.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.5314, allocations: 174.8 kB / 0.5449 GB, free: 12.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.5314, allocations: 3.812 kB / 0.5449 GB, free: 12.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006297/0.532, allocations: 457.3 kB / 0.5453 GB, free: 12.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.532, allocations: 10.38 kB / 0.5453 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.532, allocations: 11.81 kB / 0.5453 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.5321, allocations: 11.62 kB / 0.5454 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002501/0.5323, allocations: 89.47 kB / 0.5454 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.5323, allocations: 14.38 kB / 0.5455 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.5325, allocations: 34.95 kB / 0.5455 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.5326, allocations: 29.45 kB / 0.5455 GB, free: 12.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 61 ($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],$whenCondition1,addInteger.pkgOut[1].trigger,trigger.y,$whenCondition2,$PRE.trigger.y,pre_trigger.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0004847/0.533, allocations: 168.4 kB / 0.5457 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.5331, allocations: 27.09 kB / 0.5457 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006058/0.5337, allocations: 392 kB / 0.5461 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.5337, allocations: 7.781 kB / 0.5461 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5337, allocations: 4.031 kB / 0.5461 GB, free: 28.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.5337, allocations: 7.766 kB / 0.5461 GB, free: 28.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.5348, allocations: 0.8544 MB / 0.5469 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5348, allocations: 0 / 0.5469 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.304e-05/0.5349, allocations: 14.77 kB / 0.5469 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.5349, allocations: 3.875 kB / 0.5469 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.5349, allocations: 10.77 kB / 0.547 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.535, allocations: 11.02 kB / 0.547 GB, free: 28.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.535, allocations: 0 / 0.547 GB, free: 28.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008734/0.5358, allocations: 0.6558 MB / 0.5476 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.118e-05/0.5359, allocations: 101.9 kB / 0.5477 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.536, allocations: 9.641 kB / 0.5477 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.5361, allocations: 5.984 kB / 0.5477 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.5362, allocations: 19.69 kB / 0.5477 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.58e-05/0.5362, allocations: 25.91 kB / 0.5478 GB, free: 27.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.786e-05/0.5363, allocations: 135.8 kB / 0.5479 GB, free: 27.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.72e-07/0.5363, allocations: 0 / 0.5479 GB, free: 27.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000615/0.5369, allocations: 170.7 kB / 0.5481 GB, free: 27.54 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: 39 (uDPSend.internalTrigger,uDPReceive.internalTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,pre_trigger.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,trigger.y,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (trigger.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 13 * 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.0006558/0.5376, allocations: 372.2 kB / 0.5484 GB, free: 27.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004583/0.5381, allocations: 333.5 kB / 0.5487 GB, free: 27.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5381, allocations: 0 / 0.5487 GB, free: 27.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.5382, allocations: 152.5 kB / 0.5489 GB, free: 27.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.5387, allocations: 67.39 kB / 0.5489 GB, free: 27.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.54, allocations: 0.6278 MB / 0.5496 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000387/0.5404, allocations: 0.8274 MB / 0.5504 GB, free: 26.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.5405, allocations: 51.73 kB / 0.5504 GB, free: 26.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.656e-05/0.5405, allocations: 37.66 kB / 0.5504 GB, free: 26.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5405, allocations: 0 / 0.5504 GB, free: 26.38 MB / 378.7 MB Notification: Performance of Templates: time 0.007919/0.5485, allocations: 4.873 MB / 0.5552 GB, free: 25.89 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe 2>&1)