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.001153/0.001153, allocations: 105.9 kB / 16.45 MB, free: 6.449 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.001168/0.001168, allocations: 190 kB / 17.39 MB, free: 5.668 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.252/1.252, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05562/0.05562, allocations: 12.04 MB / 303.3 MB, free: 3.105 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 67.89 kB / 420 MB, free: 17.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.08974, allocations: 52.32 MB / 472.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003331/0.09311, allocations: 2.387 MB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006627/0.09378, allocations: 418.6 kB / 475.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.767e-05/0.09385, allocations: 3.938 kB / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001704/0.09404, allocations: 31.72 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.09415, allocations: 27.78 kB / 475.2 MB, free: 9.996 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:30:7-39:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1183:7-1194:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.sendToUDP' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.sendTo'. Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.09443, allocations: 95.72 kB / 475.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.09462, allocations: 139.7 kB / 475.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.0948, allocations: 96.11 kB / 475.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.635e-05/0.09487, allocations: 63.72 kB / 475.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.09501, allocations: 83.61 kB / 475.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.09504, allocations: 19.94 kB / 475.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.09517, allocations: 79.95 kB / 475.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.09523, allocations: 39.91 kB / 475.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.246e-05/0.0953, allocations: 71.55 kB / 475.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.09556, allocations: 235.2 kB / 476.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.09557, allocations: 0 / 476.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09558, allocations: 0 / 476.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.09559, allocations: 4 kB / 476.1 MB, free: 9.086 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.0007529/0.09635, allocations: 0.5418 MB / 476.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.09638, allocations: 12.02 kB / 476.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.09644, allocations: 24.69 kB / 476.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.09662, allocations: 216.1 kB / 476.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.09665, allocations: 8.375 kB / 476.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.09668, allocations: 20.31 kB / 476.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.09699, allocations: 187.7 kB / 477.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.09701, allocations: 192 / 477.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.09704, allocations: 11.94 kB / 477.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.09705, allocations: 4 kB / 477.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.09723, allocations: 95.83 kB / 477.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006415/0.09787, allocations: 0.5511 MB / 477.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.09814, allocations: 129.1 kB / 477.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.039e-05/0.09824, allocations: 57.81 kB / 478 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.09827, allocations: 7.938 kB / 478 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.09844, allocations: 127.9 kB / 478.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.09845, allocations: 0 / 478.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004596/0.09892, allocations: 241.5 kB / 478.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.09897, allocations: 77.11 kB / 478.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.09908, allocations: 155.5 kB / 478.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.09911, allocations: 33.7 kB / 478.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.442e-05/0.09918, allocations: 116.4 kB / 478.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.09922, allocations: 35.92 kB / 478.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.016e-05/0.09928, allocations: 41.7 kB / 478.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.0994, allocations: 326.8 kB / 479.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.673e-05/0.09948, allocations: 44.03 kB / 479.2 MB, free: 5.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.09959, allocations: 98.67 kB / 479.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/0.09978, allocations: 146.6 kB / 479.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.09979, allocations: 4 kB / 479.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002637/0.1001, allocations: 173.3 kB / 479.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.1001, allocations: 8 kB / 479.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1001, allocations: 0 / 479.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.1001, allocations: 7.984 kB / 479.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.247e-05/0.1002, allocations: 20 kB / 479.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1002, allocations: 7.922 kB / 479.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.63e-05/0.1003, allocations: 11.94 kB / 479.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.1003, allocations: 8 kB / 479.6 MB, free: 5.266 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.000119/0.1004, allocations: 147.7 kB / 479.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/0.1005, allocations: 11.81 kB / 479.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/0.1007, allocations: 154.3 kB / 479.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1007, allocations: 4 kB / 479.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1007, allocations: 0 / 479.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1008, allocations: 0 / 479.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005191/0.1013, allocations: 0.4981 MB / 480.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1013, allocations: 48 / 480.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.245e-05/0.1013, allocations: 7.984 kB / 480.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1013, allocations: 8 kB / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.1014, allocations: 3.984 kB / 480.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1014, allocations: 4 kB / 480.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1014, allocations: 0 / 480.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.1017, allocations: 288.2 kB / 480.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.878e-05/0.1018, allocations: 88.95 kB / 480.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.1018, allocations: 11.92 kB / 480.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.759e-05/0.1019, allocations: 4 kB / 480.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.1019, allocations: 16.11 kB / 480.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1019, allocations: 4 kB / 480.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.045e-05/0.102, allocations: 103.2 kB / 481 MB, free: 3.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.102, allocations: 0 / 481 MB, free: 3.816 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002988/0.1023, allocations: 55.83 kB / 481 MB, free: 3.762 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.0003951/0.1027, allocations: 230.8 kB / 481.2 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002411/0.1029, allocations: 119.8 kB / 481.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.103, allocations: 0 / 481.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.1031, allocations: 56.3 kB / 481.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.1033, allocations: 31.58 kB / 481.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.1039, allocations: 319.8 kB / 481.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.1042, allocations: 0.7195 MB / 482.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.488e-05/0.1043, allocations: 20.88 kB / 482.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.1043, allocations: 15.42 kB / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1043, allocations: 3.938 kB / 482.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of Templates: time 0.004431/0.1088, allocations: 2.008 MB / 484.5 MB, free: 284 kB / 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)