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.001352/0.001352, allocations: 180.9 kB / 8.049 MB, free: 1.027 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.4/1.4, allocations: 221.5 MB / 230 MB, free: 7.574 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.0008454/0.0008454, allocations: 96.77 kB / 280.9 MB, free: 5.328 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.05068/0.05068, allocations: 11.92 MB / 343.6 MB, free: 3.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.869e-05/1.871e-05, allocations: 6.906 kB / 403.1 MB, free: 45.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 53.35 MB / 456.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3544/0.4628, allocations: 85.98 MB / 0.5297 GB, free: 16.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/0.4631, allocations: 77.5 kB / 0.5298 GB, free: 16.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02583/0.4889, allocations: 9.856 MB / 0.5394 GB, free: 16.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.4889, allocations: 0 / 0.5394 GB, free: 16.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.059e-05/0.489, allocations: 14.16 kB / 0.5395 GB, free: 16.06 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001408/0.4904, allocations: 1.009 MB / 0.5404 GB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.731e-05/0.4904, allocations: 11.66 kB / 0.5404 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.4906, allocations: 57 kB / 0.5405 GB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000459/0.491, allocations: 340.2 kB / 0.5408 GB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.4911, allocations: 20.89 kB / 0.5408 GB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.4911, allocations: 27.62 kB / 0.5409 GB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004153/0.4916, allocations: 223.1 kB / 0.5411 GB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005431/0.4921, allocations: 446.4 kB / 0.5415 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.4921, allocations: 0 / 0.5415 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.4922, allocations: 3.953 kB / 0.5415 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.4922, allocations: 11.41 kB / 0.5415 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.4934, allocations: 1.32 MB / 0.5428 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.4938, allocations: 290 kB / 0.5431 GB, free: 14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.4939, allocations: 153.6 kB / 0.5432 GB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.494, allocations: 3.969 kB / 0.5432 GB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002728/0.4942, allocations: 246.6 kB / 0.5435 GB, free: 13.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.833e-06/0.4943, allocations: 0 / 0.5435 GB, free: 13.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0009532/0.4952, allocations: 498.9 kB / 0.544 GB, free: 13.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.4953, allocations: 180.8 kB / 0.5441 GB, free: 13.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.4955, allocations: 216.1 kB / 0.5443 GB, free: 13.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.4955, allocations: 39.31 kB / 0.5444 GB, free: 13.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.4956, allocations: 209 kB / 0.5446 GB, free: 13.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.368e-05/0.4957, allocations: 99.88 kB / 0.5447 GB, free: 13.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.753e-05/0.4957, allocations: 0.5 kB / 0.5447 GB, free: 13.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.334e-05/0.4958, allocations: 343 kB / 0.545 GB, free: 12.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.4959, allocations: 104.1 kB / 0.5451 GB, free: 12.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.4962, allocations: 316.1 kB / 0.5454 GB, free: 12.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.4965, allocations: 186.5 kB / 0.5456 GB, free: 12.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.4965, allocations: 0 / 0.5456 GB, free: 12.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006406/0.4971, allocations: 446.4 kB / 0.546 GB, free: 12.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.4972, allocations: 7.688 kB / 0.546 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4972, allocations: 11.84 kB / 0.546 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4972, allocations: 11.66 kB / 0.546 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.4974, allocations: 83.89 kB / 0.5461 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4975, allocations: 18.42 kB / 0.5461 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.4976, allocations: 27.12 kB / 0.5462 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.923e-05/0.4977, allocations: 25.28 kB / 0.5462 GB, free: 12.53 MB / 362.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 () * 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.0004588/0.4981, allocations: 167.8 kB / 0.5463 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.341e-05/0.4982, allocations: 30.81 kB / 0.5464 GB, free: 28.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000614/0.4988, allocations: 379.4 kB / 0.5467 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4988, allocations: 4.719 kB / 0.5467 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.4988, allocations: 5.578 kB / 0.5467 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4988, allocations: 4.531 kB / 0.5467 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.5, allocations: 0.8509 MB / 0.5476 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.5, allocations: 3.938 kB / 0.5476 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.649e-05/0.5001, allocations: 13.28 kB / 0.5476 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.5001, allocations: 7.266 kB / 0.5476 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.5001, allocations: 14.45 kB / 0.5476 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.5001, allocations: 2.875 kB / 0.5476 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.5001, allocations: 1.625 kB / 0.5476 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009154/0.501, allocations: 0.6482 MB / 0.5482 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/0.5011, allocations: 109.8 kB / 0.5484 GB, free: 27.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.5012, allocations: 15.88 kB / 0.5484 GB, free: 27.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.5013, allocations: 5.031 kB / 0.5484 GB, free: 27.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.689e-05/0.5014, allocations: 30.77 kB / 0.5484 GB, free: 27.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.33e-05/0.5014, allocations: 18.53 kB / 0.5484 GB, free: 27.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.404e-05/0.5015, allocations: 131 kB / 0.5485 GB, free: 27.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5015, allocations: 1.625 kB / 0.5485 GB, free: 27.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005923/0.5021, allocations: 166.8 kB / 0.5487 GB, free: 27.51 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 () * 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.0006383/0.5028, allocations: 376.4 kB / 0.5491 GB, free: 27.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000396/0.5032, allocations: 318.4 kB / 0.5494 GB, free: 27.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5032, allocations: 3.688 kB / 0.5494 GB, free: 27.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.5034, allocations: 154.4 kB / 0.5495 GB, free: 27.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.5038, allocations: 69.56 kB / 0.5496 GB, free: 27.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.5052, allocations: 0.6665 MB / 0.5502 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.5056, allocations: 0.8208 MB / 0.551 GB, free: 26.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.5057, allocations: 49.25 kB / 0.5511 GB, free: 26.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.88e-05/0.5058, allocations: 33.41 kB / 0.5511 GB, free: 26.35 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5058, allocations: 0 / 0.5511 GB, free: 26.35 MB / 378.7 MB Notification: Performance of Templates: time 0.008075/0.5139, allocations: 4.885 MB / 0.5559 GB, free: 25.86 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)