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.00138/0.001379, 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.351/1.351, allocations: 221.5 MB / 230 MB, free: 7.523 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.001226/0.001226, allocations: 101.2 kB / 280.9 MB, free: 5.273 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.04931/0.04931, allocations: 11.91 MB / 343.6 MB, free: 3.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.757e-05/1.76e-05, allocations: 2.844 kB / 403.1 MB, free: 45.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09399/0.09402, allocations: 53.36 MB / 456.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3826/0.4767, allocations: 85.32 MB / 0.5291 GB, free: 17.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.477, allocations: 74.06 kB / 0.5292 GB, free: 17.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0262/0.5032, allocations: 9.422 MB / 0.5384 GB, free: 16.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.5032, allocations: 0 / 0.5384 GB, free: 16.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.686e-05/0.5033, allocations: 10.88 kB / 0.5384 GB, free: 16.22 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.001958/0.5053, allocations: 1.008 MB / 0.5394 GB, free: 15.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.5053, allocations: 8.156 kB / 0.5394 GB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.5055, allocations: 58.31 kB / 0.5394 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005967/0.5061, allocations: 338 kB / 0.5398 GB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.067e-05/0.5062, allocations: 19.55 kB / 0.5398 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.5063, allocations: 29.27 kB / 0.5398 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004378/0.5067, allocations: 223.4 kB / 0.54 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.5073, allocations: 425.4 kB / 0.5404 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.5074, allocations: 0 / 0.5404 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.5074, allocations: 5.781 kB / 0.5404 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.5074, allocations: 13.28 kB / 0.5404 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.5089, allocations: 1.259 MB / 0.5417 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000472/0.5094, allocations: 279.3 kB / 0.5419 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.5096, allocations: 141.6 kB / 0.5421 GB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.5097, allocations: 14.62 kB / 0.5421 GB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003694/0.51, allocations: 235.1 kB / 0.5423 GB, free: 14.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.434e-06/0.5101, allocations: 0 / 0.5423 GB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001119/0.5112, allocations: 488.1 kB / 0.5428 GB, free: 14.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.5113, allocations: 167 kB / 0.5429 GB, free: 13.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.5115, allocations: 203.8 kB / 0.5431 GB, free: 13.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/0.5116, allocations: 36.14 kB / 0.5432 GB, free: 13.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.5117, allocations: 203.6 kB / 0.5434 GB, free: 13.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.709e-05/0.5118, allocations: 94 kB / 0.5435 GB, free: 13.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.5119, allocations: 7.031 kB / 0.5435 GB, free: 13.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.603e-05/0.512, allocations: 342.5 kB / 0.5438 GB, free: 13.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.5121, allocations: 110 kB / 0.5439 GB, free: 13.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.5124, allocations: 306.5 kB / 0.5442 GB, free: 13.03 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.5128, allocations: 182.8 kB / 0.5444 GB, free: 13.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.5128, allocations: 3.875 kB / 0.5444 GB, free: 13.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007097/0.5135, allocations: 450.7 kB / 0.5448 GB, free: 12.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.5135, allocations: 7.75 kB / 0.5448 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.5136, allocations: 7.75 kB / 0.5448 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.5136, allocations: 11.41 kB / 0.5448 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.5139, allocations: 83.52 kB / 0.5449 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.5139, allocations: 11.47 kB / 0.5449 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.5141, allocations: 38.98 kB / 0.5449 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.5141, allocations: 25.69 kB / 0.545 GB, free: 12.88 MB / 362.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.0001264/0.5142, allocations: 175.4 kB / 0.5451 GB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.222e-05/0.5143, allocations: 31 kB / 0.5452 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003617/0.5146, allocations: 221.8 kB / 0.5454 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.5147, allocations: 3.75 kB / 0.5454 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.5147, allocations: 3.938 kB / 0.5454 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.5147, allocations: 10.3 kB / 0.5454 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.5162, allocations: 0.9369 MB / 0.5463 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.5162, allocations: 0 / 0.5463 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.311e-05/0.5163, allocations: 14.09 kB / 0.5463 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-06/0.5163, allocations: 3.906 kB / 0.5463 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.5163, allocations: 12.62 kB / 0.5463 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.5163, allocations: 3.875 kB / 0.5463 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.5163, allocations: 11.89 kB / 0.5464 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000956/0.5173, allocations: 0.6852 MB / 0.547 GB, free: 28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.5174, allocations: 104.8 kB / 0.5471 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.5174, allocations: 5.984 kB / 0.5471 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.5176, allocations: 9.609 kB / 0.5471 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.5176, allocations: 20.81 kB / 0.5472 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.189e-05/0.5177, allocations: 14.16 kB / 0.5472 GB, free: 27.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.5178, allocations: 129.7 kB / 0.5473 GB, free: 27.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5178, allocations: 0 / 0.5473 GB, free: 27.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006341/0.5184, allocations: 163.5 kB / 0.5474 GB, free: 27.77 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.0007324/0.5192, allocations: 379.9 kB / 0.5478 GB, free: 27.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004932/0.5197, allocations: 324 kB / 0.5481 GB, free: 27.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5197, allocations: 0 / 0.5481 GB, free: 27.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.5199, allocations: 153.5 kB / 0.5483 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.5204, allocations: 61.53 kB / 0.5483 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.522, allocations: 0.6795 MB / 0.549 GB, free: 27.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.5224, allocations: 0.8255 MB / 0.5498 GB, free: 26.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.5226, allocations: 45.5 kB / 0.5498 GB, free: 26.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.972e-05/0.5226, allocations: 29.08 kB / 0.5499 GB, free: 26.6 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5226, allocations: 0 / 0.5499 GB, free: 26.6 MB / 378.7 MB Notification: Performance of Templates: time 0.008145/0.5308, allocations: 4.826 MB / 0.5546 GB, free: 26.11 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)