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.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_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.001634/0.001634, 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.35/1.35, allocations: 221.5 MB / 230 MB, free: 7.516 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.000924/0.0009239, allocations: 94.56 kB / 280.9 MB, free: 5.258 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.04828/0.04828, allocations: 11.91 MB / 343.6 MB, free: 3.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.648e-05/1.65e-05, allocations: 2.844 kB / 403.1 MB, free: 45.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 53.36 MB / 456.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3792/0.4904, allocations: 85.33 MB / 0.5291 GB, free: 16.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4907, allocations: 69.42 kB / 0.5292 GB, free: 16.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02424/0.515, allocations: 9.446 MB / 0.5384 GB, free: 16.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.515, allocations: 0 / 0.5384 GB, free: 16.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.515, allocations: 11.62 kB / 0.5384 GB, free: 16.01 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.001153/0.5162, allocations: 1.008 MB / 0.5394 GB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.5162, allocations: 11.59 kB / 0.5394 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.933e-05/0.5163, allocations: 56.38 kB / 0.5395 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.5167, allocations: 331.6 kB / 0.5398 GB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.34e-05/0.5168, allocations: 23.48 kB / 0.5398 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.5168, allocations: 27.33 kB / 0.5398 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004045/0.5172, allocations: 222.6 kB / 0.54 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005954/0.5178, allocations: 416.2 kB / 0.5404 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.5179, allocations: 7.938 kB / 0.5404 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.77e-05/0.5179, allocations: 10.94 kB / 0.5405 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.393e-06/0.5179, allocations: 11.31 kB / 0.5405 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.5191, allocations: 1.258 MB / 0.5417 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.5195, allocations: 276.2 kB / 0.542 GB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.5196, allocations: 141 kB / 0.5421 GB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.5197, allocations: 21.92 kB / 0.5421 GB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002581/0.5199, allocations: 235.1 kB / 0.5423 GB, free: 13.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.893e-06/0.5199, allocations: 0 / 0.5423 GB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009381/0.5209, allocations: 487.9 kB / 0.5428 GB, free: 13.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.521, allocations: 158.3 kB / 0.543 GB, free: 13.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.5211, allocations: 208.7 kB / 0.5432 GB, free: 13.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.5212, allocations: 39.77 kB / 0.5432 GB, free: 13.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.829e-05/0.5213, allocations: 206.5 kB / 0.5434 GB, free: 13.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.789e-05/0.5213, allocations: 95.38 kB / 0.5435 GB, free: 13.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.702e-05/0.5214, allocations: 0 / 0.5435 GB, free: 13.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.193e-05/0.5214, allocations: 347 kB / 0.5438 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.5216, allocations: 106 kB / 0.5439 GB, free: 13.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.5218, allocations: 312.2 kB / 0.5442 GB, free: 12.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.5222, allocations: 177.7 kB / 0.5444 GB, free: 12.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.5222, allocations: 3.875 kB / 0.5444 GB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006394/0.5228, allocations: 443.6 kB / 0.5448 GB, free: 12.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.5228, allocations: 8.625 kB / 0.5448 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.5229, allocations: 7.75 kB / 0.5448 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.5229, allocations: 11.75 kB / 0.5448 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.5231, allocations: 85.88 kB / 0.5449 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.5232, allocations: 11.69 kB / 0.5449 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.5233, allocations: 38.42 kB / 0.545 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.954e-05/0.5234, allocations: 26.5 kB / 0.545 GB, free: 12.67 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.0001182/0.5235, allocations: 176.8 kB / 0.5452 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.5235, allocations: 35.19 kB / 0.5452 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003416/0.5239, allocations: 219.1 kB / 0.5454 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.5239, allocations: 3.719 kB / 0.5454 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5239, allocations: 3.844 kB / 0.5454 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.5239, allocations: 2.906 kB / 0.5454 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.5254, allocations: 0.9384 MB / 0.5463 GB, free: 28.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.5254, allocations: 3.875 kB / 0.5463 GB, free: 28.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.421e-05/0.5255, allocations: 13.56 kB / 0.5463 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.5255, allocations: 3.875 kB / 0.5463 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.5255, allocations: 8.938 kB / 0.5464 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.5255, allocations: 3.875 kB / 0.5464 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5255, allocations: 3.953 kB / 0.5464 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008424/0.5264, allocations: 0.6937 MB / 0.547 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.5264, allocations: 107.6 kB / 0.5471 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.5265, allocations: 9.625 kB / 0.5472 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.5266, allocations: 9.016 kB / 0.5472 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.5267, allocations: 19.61 kB / 0.5472 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.366e-05/0.5267, allocations: 21.06 kB / 0.5472 GB, free: 27.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.809e-05/0.5268, allocations: 126.8 kB / 0.5473 GB, free: 27.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.5268, allocations: 0 / 0.5473 GB, free: 27.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005862/0.5274, allocations: 161.2 kB / 0.5475 GB, free: 27.55 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.0006821/0.5281, allocations: 370.6 kB / 0.5478 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004895/0.5286, allocations: 327.5 kB / 0.5481 GB, free: 27.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5286, allocations: 0 / 0.5481 GB, free: 27.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.5288, allocations: 158.4 kB / 0.5483 GB, free: 27.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.5293, allocations: 68.67 kB / 0.5484 GB, free: 27.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.5309, allocations: 0.6653 MB / 0.549 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.5313, allocations: 0.826 MB / 0.5498 GB, free: 26.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.5314, allocations: 50.16 kB / 0.5499 GB, free: 26.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.5315, allocations: 29.58 kB / 0.5499 GB, free: 26.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5315, allocations: 0 / 0.5499 GB, free: 26.38 MB / 378.7 MB Notification: Performance of Templates: time 0.007633/0.5391, allocations: 4.818 MB / 0.5546 GB, free: 25.88 MB / 378.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)