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.001055/0.001055, allocations: 181.4 kB / 13.23 MB, free: 2.086 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.585/1.585, allocations: 221.4 MB / 235.1 MB, free: 14.39 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.0009743/0.0009738, allocations: 97.09 kB / 286.1 MB, free: 12.97 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.05486/0.05486, allocations: 11.89 MB / 348.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.089e-05/3.092e-05, allocations: 8 kB / 410.1 MB, free: 58.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 53.34 MB / 463.5 MB, free: 4.898 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3768/0.4836, allocations: 86.25 MB / 0.5368 GB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.4838, allocations: 72.91 kB / 0.5369 GB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02489/0.5087, allocations: 9.615 MB / 0.5463 GB, free: 4.918 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.5087, allocations: 0 / 0.5463 GB, free: 4.918 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.5087, allocations: 16 kB / 0.5463 GB, free: 4.902 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.001495/0.5103, allocations: 1.01 MB / 0.5473 GB, free: 3.879 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.5103, allocations: 8.031 kB / 0.5473 GB, free: 3.871 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.5104, allocations: 51.39 kB / 0.5473 GB, free: 3.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004761/0.5109, allocations: 339.6 kB / 0.5477 GB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.5109, allocations: 32.56 kB / 0.5477 GB, free: 3.461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.511, allocations: 45.11 kB / 0.5477 GB, free: 3.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006908/0.5117, allocations: 470.7 kB / 0.5482 GB, free: 3.066 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.5117, allocations: 7.938 kB / 0.5482 GB, free: 3.059 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.5118, allocations: 23.3 kB / 0.5482 GB, free: 3.047 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.5118, allocations: 11.95 kB / 0.5482 GB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004192/0.5123, allocations: 258.4 kB / 0.5485 GB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.5138, allocations: 1.422 MB / 0.5499 GB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004427/0.5142, allocations: 306.8 kB / 0.5502 GB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.5144, allocations: 162.6 kB / 0.5503 GB, free: 1.152 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.5145, allocations: 8.406 kB / 0.5503 GB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003174/0.5148, allocations: 257.7 kB / 0.5506 GB, free: 0.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 1.773e-06/0.5148, allocations: 0 / 0.5506 GB, free: 0.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.000743/0.5156, allocations: 476.5 kB / 0.551 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.5157, allocations: 182.1 kB / 0.5512 GB, free: 336 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.5159, allocations: 220.5 kB / 0.5514 GB, free: 144 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.5159, allocations: 45.19 kB / 0.5514 GB, free: 100 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.5161, allocations: 199.8 kB / 0.5516 GB, free: 15.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.722e-05/0.5162, allocations: 105.7 kB / 0.5517 GB, free: 15.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.907e-05/0.5162, allocations: 15.75 kB / 0.5518 GB, free: 15.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5163, allocations: 342.2 kB / 0.5521 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.5165, allocations: 115.5 kB / 0.5522 GB, free: 15.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003002/0.5168, allocations: 341.9 kB / 0.5525 GB, free: 15.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.5171, allocations: 180.8 kB / 0.5527 GB, free: 14.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5171, allocations: 0 / 0.5527 GB, free: 14.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007191/0.5178, allocations: 0.5006 MB / 0.5532 GB, free: 14.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.5178, allocations: 11.98 kB / 0.5532 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.5179, allocations: 8.078 kB / 0.5532 GB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.5179, allocations: 12 kB / 0.5532 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.5182, allocations: 83.02 kB / 0.5533 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.352e-05/0.5182, allocations: 27.88 kB / 0.5533 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.5184, allocations: 40.88 kB / 0.5534 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.5184, allocations: 26.67 kB / 0.5534 GB, free: 14.32 MB / 378.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.0001685/0.5186, allocations: 184.5 kB / 0.5536 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.709e-05/0.5187, allocations: 31.62 kB / 0.5536 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005556/0.5192, allocations: 380 kB / 0.5539 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.5192, allocations: 4 kB / 0.554 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.5192, allocations: 4 kB / 0.554 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5193, allocations: 7.938 kB / 0.554 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.5206, allocations: 0.9389 MB / 0.5549 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5206, allocations: 7.938 kB / 0.5549 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.651e-05/0.5207, allocations: 8 kB / 0.5549 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.5207, allocations: 7.953 kB / 0.5549 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.5207, allocations: 15.98 kB / 0.5549 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.5207, allocations: 0 / 0.5549 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.598e-05/0.5208, allocations: 7.938 kB / 0.5549 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000845/0.5216, allocations: 0.6353 MB / 0.5555 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.869e-05/0.5217, allocations: 100.7 kB / 0.5556 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.5217, allocations: 11.98 kB / 0.5557 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.5219, allocations: 8 kB / 0.5557 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.842e-05/0.5219, allocations: 23.92 kB / 0.5557 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.522, allocations: 19.98 kB / 0.5557 GB, free: 12.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000125/0.5221, allocations: 142.8 kB / 0.5558 GB, free: 11.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5221, allocations: 3.938 kB / 0.5558 GB, free: 11.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006478/0.5228, allocations: 175.6 kB / 0.556 GB, free: 11.7 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.0008206/0.5236, allocations: 370.9 kB / 0.5564 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.5242, allocations: 361.2 kB / 0.5567 GB, free: 11.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5243, allocations: 0 / 0.5567 GB, free: 11.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000239/0.5245, allocations: 172 kB / 0.5569 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.5249, allocations: 74.69 kB / 0.5569 GB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.5264, allocations: 0.6518 MB / 0.5576 GB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.5268, allocations: 0.8274 MB / 0.5584 GB, free: 9.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.5269, allocations: 54.92 kB / 0.5584 GB, free: 9.195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.576e-05/0.527, allocations: 31.42 kB / 0.5585 GB, free: 9.164 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.527, allocations: 0 / 0.5585 GB, free: 9.164 MB / 378.7 MB Notification: Performance of Templates: time 0.009022/0.536, allocations: 4.984 MB / 0.5633 GB, free: 4.238 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)