Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.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_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 172.3 kB / 16.8 MB, free: 4.902 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.442/1.442, allocations: 223.3 MB / 240.8 MB, free: 9.941 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.0008625/0.0008624, allocations: 104.1 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.05392/0.05392, allocations: 12.04 MB / 355.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 16 kB / 419.2 MB, free: 53.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.08876, allocations: 53.35 MB / 472.5 MB, free: 192 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2915/0.3803, allocations: 86.08 MB / 0.5455 GB, free: 11.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.3806, allocations: 75.97 kB / 0.5456 GB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02501/0.4056, allocations: 9.547 MB / 0.5549 GB, free: 1.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4057, allocations: 0 / 0.5549 GB, free: 1.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.4057, allocations: 12 kB / 0.5549 GB, free: 1.793 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.001577/0.4073, allocations: 1.034 MB / 0.5559 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4073, allocations: 8.031 kB / 0.5559 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.4075, allocations: 48.38 kB / 0.556 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004832/0.4079, allocations: 348.4 kB / 0.5563 GB, free: 228 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.14e-05/0.408, allocations: 29.36 kB / 0.5563 GB, free: 196 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-05/0.4081, allocations: 40.38 kB / 0.5564 GB, free: 156 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007747/0.4089, allocations: 480 kB / 0.5568 GB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.4089, allocations: 192 / 0.5568 GB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.229e-05/0.4089, allocations: 19.94 kB / 0.5569 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.4089, allocations: 12 kB / 0.5569 GB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004718/0.4094, allocations: 259.7 kB / 0.5571 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.4111, allocations: 1.359 MB / 0.5584 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005066/0.4117, allocations: 290.4 kB / 0.5587 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.4119, allocations: 167.9 kB / 0.5589 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.4119, allocations: 8 kB / 0.5589 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003608/0.4123, allocations: 255.3 kB / 0.5591 GB, free: 13.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.244e-06/0.4123, allocations: 0 / 0.5591 GB, free: 13.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001014/0.4133, allocations: 0.5822 MB / 0.5597 GB, free: 12.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.4134, allocations: 168.4 kB / 0.5599 GB, free: 12.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.4137, allocations: 234.9 kB / 0.5601 GB, free: 12.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.4137, allocations: 45.64 kB / 0.5601 GB, free: 12.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.4139, allocations: 200.3 kB / 0.5603 GB, free: 11.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.955e-05/0.414, allocations: 106.7 kB / 0.5604 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.026e-05/0.414, allocations: 8 kB / 0.5604 GB, free: 11.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.4141, allocations: 350.7 kB / 0.5608 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.4143, allocations: 121 kB / 0.5609 GB, free: 11.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.4147, allocations: 332.1 kB / 0.5612 GB, free: 10.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005816/0.4153, allocations: 0.4944 MB / 0.5617 GB, free: 10.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.4153, allocations: 0 / 0.5617 GB, free: 10.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000786/0.4161, allocations: 0.4888 MB / 0.5622 GB, free: 9.816 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.4161, allocations: 8 kB / 0.5622 GB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.4161, allocations: 8 kB / 0.5622 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.4162, allocations: 8.75 kB / 0.5622 GB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.4164, allocations: 83.77 kB / 0.5623 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.4165, allocations: 15.98 kB / 0.5623 GB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.4167, allocations: 39.69 kB / 0.5623 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/0.4167, allocations: 28 kB / 0.5623 GB, free: 9.629 MB / 378.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 () * Number of clocked 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.0002722/0.417, allocations: 241.8 kB / 0.5626 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.417, allocations: 35.67 kB / 0.5626 GB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003881/0.4174, allocations: 235.4 kB / 0.5628 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4174, allocations: 4 kB / 0.5628 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.4175, allocations: 0 / 0.5628 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.4175, allocations: 7.984 kB / 0.5628 GB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.4188, allocations: 1.018 MB / 0.5638 GB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.4188, allocations: 8 kB / 0.5638 GB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.579e-05/0.4189, allocations: 12 kB / 0.5639 GB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.523e-06/0.4189, allocations: 4.094 kB / 0.5639 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.4189, allocations: 11.92 kB / 0.5639 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.4189, allocations: 7.938 kB / 0.5639 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4189, allocations: 0 / 0.5639 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000774/0.4197, allocations: 0.6613 MB / 0.5645 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.076e-05/0.4198, allocations: 100.8 kB / 0.5646 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.415e-05/0.4198, allocations: 11.98 kB / 0.5646 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.42, allocations: 7.938 kB / 0.5646 GB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.42, allocations: 23.91 kB / 0.5647 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.818e-05/0.4201, allocations: 19.98 kB / 0.5647 GB, free: 7.117 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001054/0.4202, allocations: 143 kB / 0.5648 GB, free: 6.977 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4202, allocations: 0 / 0.5648 GB, free: 6.977 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006405/0.4209, allocations: 183.5 kB / 0.565 GB, free: 6.797 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 () * Number of clocked 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.0007798/0.4217, allocations: 357 kB / 0.5653 GB, free: 6.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005947/0.4223, allocations: 368.2 kB / 0.5657 GB, free: 6.141 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4223, allocations: 1.75 kB / 0.5657 GB, free: 6.141 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002779/0.4226, allocations: 167.8 kB / 0.5658 GB, free: 5.977 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005727/0.4231, allocations: 65.19 kB / 0.5659 GB, free: 5.914 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.4251, allocations: 0.9676 MB / 0.5668 GB, free: 4.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.4255, allocations: 0.819 MB / 0.5676 GB, free: 4.066 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000154/0.4257, allocations: 42.95 kB / 0.5677 GB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.729e-05/0.4258, allocations: 35.42 kB / 0.5677 GB, free: 3.992 MB / 378.7 MB Notification: Performance of SimCode: time 4.3e-07/0.4258, allocations: 0 / 0.5677 GB, free: 3.992 MB / 378.7 MB Notification: Performance of Templates: time 0.009559/0.4353, allocations: 4.964 MB / 0.5726 GB, free: 15.06 MB / 394.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe 2>&1)