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.0009473/0.0009474, allocations: 181 kB / 15.8 MB, free: 6.336 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.276/1.276, allocations: 223.2 MB / 239.7 MB, free: 1.777 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.0008791/0.000879, allocations: 93.69 kB / 290.9 MB, free: 13.95 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.05302/0.05302, allocations: 12.03 MB / 354 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003158/0.0003159, allocations: 11.31 kB / 417.9 MB, free: 87.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09006/0.09039, allocations: 53.36 MB / 471.2 MB, free: 37.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2899/0.3803, allocations: 86.31 MB / 0.5445 GB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.3806, allocations: 78.12 kB / 0.5446 GB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02326/0.4039, allocations: 9.658 MB / 0.554 GB, free: 30.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4039, allocations: 3.938 kB / 0.554 GB, free: 30.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.111e-05/0.4039, allocations: 15.69 kB / 0.554 GB, free: 30.5 MB / 378.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.001545/0.4055, allocations: 1.035 MB / 0.555 GB, free: 29.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4055, allocations: 9.875 kB / 0.555 GB, free: 29.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.4057, allocations: 54.66 kB / 0.5551 GB, free: 29.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000531/0.4062, allocations: 335.8 kB / 0.5554 GB, free: 29.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.261e-05/0.4063, allocations: 32.98 kB / 0.5554 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.641e-05/0.4064, allocations: 40 kB / 0.5555 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008414/0.4072, allocations: 489.6 kB / 0.5559 GB, free: 29.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.4072, allocations: 0 / 0.5559 GB, free: 29.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.4073, allocations: 24.39 kB / 0.556 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.4073, allocations: 12.95 kB / 0.556 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004928/0.4078, allocations: 268.8 kB / 0.5562 GB, free: 29.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.4096, allocations: 1.416 MB / 0.5576 GB, free: 28.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.4101, allocations: 307.2 kB / 0.5579 GB, free: 28.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.4102, allocations: 7.562 kB / 0.5579 GB, free: 28.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003537/0.4105, allocations: 259.9 kB / 0.5582 GB, free: 28.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.515e-06/0.4106, allocations: 0 / 0.5582 GB, free: 28.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.0011/0.4117, allocations: 0.9105 MB / 0.559 GB, free: 27.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.4117, allocations: 183.6 kB / 0.5592 GB, free: 27.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.4119, allocations: 218.4 kB / 0.5594 GB, free: 27.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.412, allocations: 44.3 kB / 0.5595 GB, free: 27.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.4121, allocations: 201.9 kB / 0.5597 GB, free: 27.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.37e-05/0.4122, allocations: 104.7 kB / 0.5598 GB, free: 27.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/0.4122, allocations: 13.44 kB / 0.5598 GB, free: 27.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.4123, allocations: 343.7 kB / 0.5601 GB, free: 27.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.4126, allocations: 123 kB / 0.5602 GB, free: 27.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.4129, allocations: 341.2 kB / 0.5605 GB, free: 26.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.4132, allocations: 184.1 kB / 0.5607 GB, free: 26.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.4132, allocations: 7.906 kB / 0.5607 GB, free: 26.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007734/0.414, allocations: 0.5011 MB / 0.5612 GB, free: 26.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.414, allocations: 7.5 kB / 0.5612 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.414, allocations: 7.125 kB / 0.5612 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.97e-05/0.414, allocations: 16.72 kB / 0.5613 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.4143, allocations: 88.06 kB / 0.5613 GB, free: 26.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.261e-05/0.4144, allocations: 21.8 kB / 0.5614 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.4147, allocations: 41.62 kB / 0.5614 GB, free: 26.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.4147, allocations: 26.59 kB / 0.5614 GB, free: 26.57 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.0002369/0.415, allocations: 235.4 kB / 0.5616 GB, free: 26.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.192e-05/0.415, allocations: 33.8 kB / 0.5617 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005558/0.4156, allocations: 393.8 kB / 0.5621 GB, free: 26.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.4156, allocations: 4.688 kB / 0.5621 GB, free: 26.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.4156, allocations: 1.312 kB / 0.5621 GB, free: 26.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.4156, allocations: 8.156 kB / 0.5621 GB, free: 26.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.4168, allocations: 0.9394 MB / 0.563 GB, free: 26.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.4168, allocations: 1.406 kB / 0.563 GB, free: 26.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.667e-05/0.4169, allocations: 13.05 kB / 0.563 GB, free: 26.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.4169, allocations: 11.14 kB / 0.563 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.4169, allocations: 16.22 kB / 0.563 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.4169, allocations: 2.188 kB / 0.563 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4169, allocations: 5.031 kB / 0.563 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007639/0.4177, allocations: 0.6331 MB / 0.5637 GB, free: 25.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.687e-05/0.4178, allocations: 109.3 kB / 0.5638 GB, free: 25.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.4178, allocations: 9.609 kB / 0.5638 GB, free: 25.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.418, allocations: 10.03 kB / 0.5638 GB, free: 25.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.418, allocations: 36.2 kB / 0.5638 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.792e-05/0.4181, allocations: 22.06 kB / 0.5638 GB, free: 25.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.864e-05/0.4182, allocations: 140.6 kB / 0.564 GB, free: 25.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4182, allocations: 0 / 0.564 GB, free: 25.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006179/0.4188, allocations: 168.5 kB / 0.5641 GB, free: 25.52 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.0006936/0.4195, allocations: 374.3 kB / 0.5645 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005905/0.4201, allocations: 366.7 kB / 0.5648 GB, free: 25.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4201, allocations: 5.562 kB / 0.5648 GB, free: 25.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.4204, allocations: 171.8 kB / 0.565 GB, free: 25.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.4208, allocations: 60.56 kB / 0.5651 GB, free: 25.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.4227, allocations: 0.9413 MB / 0.566 GB, free: 24.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.4231, allocations: 0.8335 MB / 0.5668 GB, free: 23.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.4232, allocations: 51.69 kB / 0.5668 GB, free: 23.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.79e-05/0.4233, allocations: 25.75 kB / 0.5669 GB, free: 23.93 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4233, allocations: 0 / 0.5669 GB, free: 23.93 MB / 378.7 MB Notification: Performance of Templates: time 0.008332/0.4316, allocations: 4.993 MB / 0.5717 GB, free: 21.44 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)