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.001573/0.001573, allocations: 115.3 kB / 17.13 MB, free: 5.941 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.0017/0.0017, allocations: 196.2 kB / 18.07 MB, free: 5.012 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.344/1.344, allocations: 222.9 MB / 241.8 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.05808/0.05808, allocations: 12.06 MB / 304 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 67.88 kB / 420.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09898/0.1008, allocations: 52.31 MB / 473 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003955/0.1047, allocations: 2.401 MB / 475.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007908/0.1055, allocations: 418.5 kB / 475.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.34e-05/0.1056, allocations: 4 kB / 475.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00022/0.1058, allocations: 39.66 kB / 475.9 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.1059, allocations: 15.86 kB / 475.9 MB, free: 9.984 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.0003178/0.1062, allocations: 111.5 kB / 476 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.1065, allocations: 135.7 kB / 476.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.1066, allocations: 64.16 kB / 476.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.032e-05/0.1067, allocations: 67.77 kB / 476.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001532/0.1069, allocations: 83.56 kB / 476.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.966e-05/0.1069, allocations: 12 kB / 476.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.107, allocations: 79.95 kB / 476.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.18e-05/0.1071, allocations: 35.91 kB / 476.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.487e-05/0.1072, allocations: 87.52 kB / 476.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.1075, allocations: 227.1 kB / 476.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1075, allocations: 4 kB / 476.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1075, allocations: 0 / 476.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1075, allocations: 0 / 476.8 MB, free: 9.094 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.0008463/0.1083, allocations: 0.557 MB / 477.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.756e-05/0.1083, allocations: 8.031 kB / 477.4 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.916e-05/0.1084, allocations: 16.84 kB / 477.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.1086, allocations: 220.1 kB / 477.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.1086, allocations: 16.38 kB / 477.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.1087, allocations: 16.36 kB / 477.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003378/0.109, allocations: 187.7 kB / 477.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.109, allocations: 192 / 477.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.109, allocations: 7.938 kB / 477.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.109, allocations: 4 kB / 477.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.1092, allocations: 95.88 kB / 477.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007306/0.11, allocations: 0.5552 MB / 478.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.1102, allocations: 117 kB / 478.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.681e-05/0.1103, allocations: 53.81 kB / 478.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.1104, allocations: 3.984 kB / 478.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001996/0.1106, allocations: 136.9 kB / 478.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.1106, allocations: 0 / 478.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004764/0.111, allocations: 233.7 kB / 479 MB, free: 6.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.1111, allocations: 89.05 kB / 479.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1112, allocations: 147.6 kB / 479.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1113, allocations: 29.64 kB / 479.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.864e-05/0.1113, allocations: 124.5 kB / 479.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.1114, allocations: 39.69 kB / 479.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.1114, allocations: 49.69 kB / 479.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1116, allocations: 326.8 kB / 479.8 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.425e-05/0.1117, allocations: 31.98 kB / 479.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.1118, allocations: 94.84 kB / 479.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.112, allocations: 146.6 kB / 480.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.112, allocations: 0 / 480.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002883/0.1123, allocations: 169.3 kB / 480.2 MB, free: 5.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1123, allocations: 8 kB / 480.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.1123, allocations: 0 / 480.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.1123, allocations: 4 kB / 480.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.839e-05/0.1124, allocations: 23.98 kB / 480.3 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.1124, allocations: 12 kB / 480.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.932e-05/0.1125, allocations: 16.33 kB / 480.3 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.1125, allocations: 12 kB / 480.3 MB, free: 5.27 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.0001451/0.1126, allocations: 143.5 kB / 480.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.1127, allocations: 15.94 kB / 480.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002542/0.1129, allocations: 150.3 kB / 480.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1129, allocations: 0 / 480.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1129, allocations: 0 / 480.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.1129, allocations: 4 kB / 480.6 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005679/0.1135, allocations: 0.4943 MB / 481.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1135, allocations: 0 / 481.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.703e-05/0.1135, allocations: 11.92 kB / 481.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1135, allocations: 0 / 481.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1136, allocations: 8 kB / 481.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1136, allocations: 0 / 481.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1136, allocations: 0 / 481.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003793/0.1139, allocations: 308.2 kB / 481.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.114, allocations: 89.02 kB / 481.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.114, allocations: 4 kB / 481.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.333e-05/0.1141, allocations: 7.984 kB / 481.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.1141, allocations: 11.88 kB / 481.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.1141, allocations: 11.98 kB / 481.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.274e-05/0.1142, allocations: 97.94 kB / 481.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1142, allocations: 0 / 481.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1145, allocations: 55.81 kB / 481.7 MB, free: 3.766 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.0005061/0.115, allocations: 231.1 kB / 481.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.1153, allocations: 116 kB / 482 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1153, allocations: 4 kB / 482 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1154, allocations: 51.91 kB / 482.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.1156, allocations: 18.8 kB / 482.1 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006424/0.1163, allocations: 323.6 kB / 482.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.1167, allocations: 0.7236 MB / 483.1 MB, free: 2.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.184e-05/0.1167, allocations: 20.86 kB / 483.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.915e-05/0.1167, allocations: 11.44 kB / 483.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1167, allocations: 0 / 483.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of Templates: time 0.005054/0.1218, allocations: 1.975 MB / 485.1 MB, free: 336 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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)