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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.001363/0.001363, allocations: 168.3 kB / 16.8 MB, free: 5.023 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.337/1.337, allocations: 223.3 MB / 240.8 MB, free: 9.953 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.0007452/0.0007452, allocations: 86.55 kB / 292 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05281/0.05281, allocations: 12.04 MB / 355.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004139/0.0004139, allocations: 15.98 kB / 419.2 MB, free: 53.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08715/0.08758, allocations: 53.34 MB / 472.5 MB, free: 192 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2995/0.3871, allocations: 86.33 MB / 0.5457 GB, free: 11.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.3874, allocations: 71.97 kB / 0.5458 GB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02749/0.4149, allocations: 9.685 MB / 0.5553 GB, free: 1.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.415, allocations: 0 / 0.5553 GB, free: 1.422 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.083e-05/0.415, allocations: 8 kB / 0.5553 GB, free: 1.414 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.001682/0.4167, allocations: 1.031 MB / 0.5563 GB, free: 288 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4168, allocations: 15.97 kB / 0.5563 GB, free: 272 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.4169, allocations: 52.36 kB / 0.5564 GB, free: 220 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.4174, allocations: 340.4 kB / 0.5567 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.4175, allocations: 33.36 kB / 0.5567 GB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-05/0.4176, allocations: 44.36 kB / 0.5568 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008144/0.4184, allocations: 494 kB / 0.5572 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.4184, allocations: 192 / 0.5572 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/0.4185, allocations: 15.94 kB / 0.5572 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.4185, allocations: 12 kB / 0.5573 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005025/0.419, allocations: 262 kB / 0.5575 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.4209, allocations: 1.436 MB / 0.5589 GB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005939/0.4216, allocations: 300.2 kB / 0.5592 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.4218, allocations: 164.3 kB / 0.5593 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.4219, allocations: 4 kB / 0.5594 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003907/0.4223, allocations: 263.8 kB / 0.5596 GB, free: 12.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.555e-06/0.4223, allocations: 3.938 kB / 0.5596 GB, free: 12.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001108/0.4234, allocations: 0.5869 MB / 0.5602 GB, free: 12.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.4235, allocations: 182.2 kB / 0.5604 GB, free: 11.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.4238, allocations: 242.8 kB / 0.5606 GB, free: 11.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.46e-05/0.4238, allocations: 41.95 kB / 0.5606 GB, free: 11.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.424, allocations: 209 kB / 0.5608 GB, free: 11.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.4241, allocations: 102.7 kB / 0.5609 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.479e-05/0.4242, allocations: 12 kB / 0.5609 GB, free: 11.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4243, allocations: 346.8 kB / 0.5613 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.4246, allocations: 117 kB / 0.5614 GB, free: 10.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.4249, allocations: 346.7 kB / 0.5617 GB, free: 10.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006633/0.4256, allocations: 0.5079 MB / 0.5622 GB, free: 9.723 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.4256, allocations: 4 kB / 0.5622 GB, free: 9.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008428/0.4265, allocations: 0.5006 MB / 0.5627 GB, free: 9.211 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.4265, allocations: 8 kB / 0.5627 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4265, allocations: 8 kB / 0.5627 GB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.4265, allocations: 12 kB / 0.5627 GB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.4268, allocations: 83.83 kB / 0.5628 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/0.4269, allocations: 20.8 kB / 0.5628 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.4271, allocations: 47.53 kB / 0.5629 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.933e-05/0.4271, allocations: 28 kB / 0.5629 GB, free: 9.008 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 () * Number of clocked 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.0002948/0.4274, allocations: 241.6 kB / 0.5631 GB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.617e-05/0.4275, allocations: 27.72 kB / 0.5632 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006081/0.4281, allocations: 380.6 kB / 0.5635 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.4281, allocations: 4 kB / 0.5635 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.4281, allocations: 7.938 kB / 0.5635 GB, free: 8.348 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4281, allocations: 4.078 kB / 0.5635 GB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.4295, allocations: 0.9514 MB / 0.5645 GB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4295, allocations: 4 kB / 0.5645 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.64e-05/0.4295, allocations: 15.94 kB / 0.5645 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.4296, allocations: 4 kB / 0.5645 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.067e-05/0.4296, allocations: 20.05 kB / 0.5645 GB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4296, allocations: 3.984 kB / 0.5645 GB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4296, allocations: 4 kB / 0.5645 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008006/0.4304, allocations: 0.6036 MB / 0.5651 GB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.678e-05/0.4305, allocations: 100.8 kB / 0.5652 GB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.4306, allocations: 15.92 kB / 0.5652 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.4307, allocations: 8 kB / 0.5652 GB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.402e-05/0.4308, allocations: 15.97 kB / 0.5652 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.4308, allocations: 23.98 kB / 0.5653 GB, free: 6.473 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001162/0.4309, allocations: 138.8 kB / 0.5654 GB, free: 6.336 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4309, allocations: 4 kB / 0.5654 GB, free: 6.332 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006523/0.4316, allocations: 171.6 kB / 0.5656 GB, free: 6.164 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) * Number of clocked states: 0 () * 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.0007586/0.4324, allocations: 377.8 kB / 0.5659 GB, free: 5.848 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006975/0.4331, allocations: 368.9 kB / 0.5663 GB, free: 5.488 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4331, allocations: 192 / 0.5663 GB, free: 5.488 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003103/0.4334, allocations: 168.8 kB / 0.5664 GB, free: 5.324 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.434, allocations: 84.23 kB / 0.5665 GB, free: 5.246 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.436, allocations: 0.9382 MB / 0.5674 GB, free: 4.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.4364, allocations: 0.8154 MB / 0.5682 GB, free: 3.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.4366, allocations: 50.95 kB / 0.5683 GB, free: 3.383 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.395e-05/0.4367, allocations: 31.42 kB / 0.5683 GB, free: 3.352 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.4367, allocations: 0 / 0.5683 GB, free: 3.352 MB / 378.7 MB Notification: Performance of Templates: time 0.01052/0.4472, allocations: 5.017 MB / 0.5732 GB, free: 14.4 MB / 394.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)