Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest") translateModel(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00459/0.00459, allocations: 89 kB / 15.91 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 197.2 kB / 16.83 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 240.5 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1414/0.1414, allocations: 12.02 MB / 302.7 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 55.91 kB / 365.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09719, allocations: 52.32 MB / 418.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003512/0.1007, allocations: 2.411 MB / 420.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006288/0.1014, allocations: 414.5 kB / 420.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.993e-05/0.1015, allocations: 0 / 420.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.1017, allocations: 39.72 kB / 420.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.461e-05/0.1018, allocations: 19.92 kB / 421 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001924/0.102, allocations: 79.86 kB / 421 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001364/0.1021, allocations: 127.7 kB / 421.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.1023, allocations: 100.3 kB / 421.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.051e-05/0.1024, allocations: 59.72 kB / 421.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.1025, allocations: 75.67 kB / 421.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/0.1025, allocations: 15.94 kB / 421.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.1026, allocations: 67.95 kB / 421.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.254e-05/0.1027, allocations: 43.84 kB / 421.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.014e-05/0.1028, allocations: 67.59 kB / 421.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.103, allocations: 223.6 kB / 421.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.103, allocations: 4 kB / 421.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.32e-07/0.103, allocations: 0 / 421.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.103, allocations: 0 / 421.8 MB, free: 1.906 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addReal.pkgOut[1].pkg = addReal.pkgIn.pkg addReal.pkgOut[1].pkg = uDPSend.pkgIn.pkg packager.pkgOut.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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0006892/0.1037, allocations: 0.5496 MB / 422.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.1037, allocations: 8.031 kB / 422.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.1038, allocations: 16.75 kB / 422.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.1039, allocations: 216.1 kB / 422.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.104, allocations: 12.38 kB / 422.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.104, allocations: 16.38 kB / 422.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.1043, allocations: 187.8 kB / 422.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.1043, allocations: 192 / 422.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.1043, allocations: 11.94 kB / 422.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.1044, allocations: 4 kB / 422.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.1045, allocations: 83.89 kB / 422.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000611/0.1051, allocations: 0.5667 MB / 423.5 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1832/0.2884, allocations: 120.1 kB / 423.6 MB, free: 41.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.2885, allocations: 63.72 kB / 423.7 MB, free: 41.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.2886, allocations: 1.219 kB / 423.7 MB, free: 41.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.2888, allocations: 125.1 kB / 423.8 MB, free: 41.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.304e-06/0.2888, allocations: 0.5312 kB / 423.8 MB, free: 41.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005052/0.2893, allocations: 244.2 kB / 424 MB, free: 41.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.2894, allocations: 77.86 kB / 424.1 MB, free: 41.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.2895, allocations: 143.7 kB / 424.2 MB, free: 41.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.2895, allocations: 33.58 kB / 424.3 MB, free: 41.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.956e-05/0.2896, allocations: 123.1 kB / 424.4 MB, free: 41.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.391e-05/0.2896, allocations: 37.83 kB / 424.4 MB, free: 41.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.281e-05/0.2897, allocations: 49.02 kB / 424.5 MB, free: 41.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.714e-05/0.2897, allocations: 325.1 kB / 424.8 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.189e-05/0.2898, allocations: 45.19 kB / 424.8 MB, free: 41.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.172e-05/0.2899, allocations: 87.73 kB / 424.9 MB, free: 40.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001562/0.29, allocations: 144.5 kB / 425.1 MB, free: 40.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2901, allocations: 0.6875 kB / 425.1 MB, free: 40.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002257/0.2903, allocations: 165.5 kB / 425.2 MB, free: 40.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.2903, allocations: 6.156 kB / 425.2 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2903, allocations: 3.625 kB / 425.2 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2903, allocations: 2.688 kB / 425.2 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.2904, allocations: 27.7 kB / 425.3 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.2905, allocations: 6.438 kB / 425.3 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.847e-05/0.2905, allocations: 10.36 kB / 425.3 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.2905, allocations: 10.59 kB / 425.3 MB, free: 40.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 (uDPSend.dummy,$PRE.uDPSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addReal.pkgOut[1].backwardTrigger,addReal.pkgOut[1].trigger,$whenCondition1,uDPSend.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,uDPSend.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.2907, allocations: 150 kB / 425.4 MB, free: 40.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.2907, allocations: 10.12 kB / 425.4 MB, free: 40.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002288/0.2909, allocations: 157.8 kB / 425.6 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2909, allocations: 5.391 kB / 425.6 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2909, allocations: 3.125 kB / 425.6 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.2909, allocations: 6.047 kB / 425.6 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004419/0.2914, allocations: 498.9 kB / 426.1 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2914, allocations: 0 / 426.1 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.171e-05/0.2914, allocations: 10.38 kB / 426.1 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2914, allocations: 0 / 426.1 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.2915, allocations: 8.109 kB / 426.1 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2915, allocations: 7.641 kB / 426.1 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2915, allocations: 6.938 kB / 426.1 MB, free: 40.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002891/0.2918, allocations: 289.5 kB / 426.4 MB, free: 40.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.139e-05/0.2918, allocations: 87.83 kB / 426.5 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.2918, allocations: 8.828 kB / 426.5 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.957e-05/0.2919, allocations: 1.5 kB / 426.5 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.27e-05/0.292, allocations: 21.81 kB / 426.5 MB, free: 40.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.292, allocations: 8 kB / 426.5 MB, free: 40.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.91e-05/0.292, allocations: 98.45 kB / 426.6 MB, free: 40.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.292, allocations: 0 / 426.6 MB, free: 40.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002986/0.2923, allocations: 54.12 kB / 426.7 MB, free: 40.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 (addReal.pkgOut[1].trigger,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addReal.pkgOut[1].backwardTrigger,uDPSend.bufferSize,uDPSend.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004164/0.2928, allocations: 222.9 kB / 426.9 MB, free: 40 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.293, allocations: 123 kB / 427 MB, free: 40 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.293, allocations: 0 / 427 MB, free: 40 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.2931, allocations: 68.02 kB / 427.1 MB, free: 40 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.2934, allocations: 21.31 kB / 427.1 MB, free: 40 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006618/0.2941, allocations: 392.9 kB / 427.5 MB, free: 39.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.2942, allocations: 0.7167 MB / 428.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.043e-05/0.2943, allocations: 24.84 kB / 428.2 MB, free: 39.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.351e-05/0.2943, allocations: 16.41 kB / 428.3 MB, free: 39.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2944, allocations: 0 / 428.3 MB, free: 39.07 MB / 350.1 MB Notification: Performance of Templates: time 0.004171/0.2985, allocations: 1.908 MB / 430.2 MB, free: 38.94 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)