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.001215/0.001215, allocations: 103 kB / 16.45 MB, free: 6.438 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.0013/0.0013, allocations: 189.4 kB / 17.38 MB, free: 5.688 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.224/1.224, allocations: 222.9 MB / 241.1 MB, free: 15.06 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.05186/0.05186, allocations: 12.05 MB / 303.3 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.91 kB / 420 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09385, allocations: 52.31 MB / 472.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003972/0.09785, allocations: 2.394 MB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00084/0.09872, allocations: 422.5 kB / 475.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.062e-05/0.09883, allocations: 4 kB / 475.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.09909, allocations: 43.59 kB / 475.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.09923, allocations: 19.86 kB / 475.2 MB, free: 9.973 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.0003264/0.09956, allocations: 95.66 kB / 475.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.09977, allocations: 143.6 kB / 475.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.09995, allocations: 92.12 kB / 475.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.285e-05/0.1, allocations: 67.77 kB / 475.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.1002, allocations: 79.61 kB / 475.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.1002, allocations: 16 kB / 475.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.1004, allocations: 71.92 kB / 475.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.548e-05/0.1005, allocations: 51.88 kB / 475.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.573e-05/0.1005, allocations: 75.55 kB / 475.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.1009, allocations: 231.1 kB / 476.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.1009, allocations: 4 kB / 476.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1009, allocations: 0 / 476.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.1009, allocations: 0 / 476.1 MB, free: 9.062 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.0007754/0.1017, allocations: 0.5454 MB / 476.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.1018, allocations: 11.97 kB / 476.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.429e-05/0.1018, allocations: 20.83 kB / 476.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.102, allocations: 228 kB / 476.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.1021, allocations: 12.38 kB / 476.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.1021, allocations: 12.38 kB / 477 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.1024, allocations: 187.6 kB / 477.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.1024, allocations: 192 / 477.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.1024, allocations: 7.938 kB / 477.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1025, allocations: 4 kB / 477.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.1026, allocations: 91.89 kB / 477.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000652/0.1033, allocations: 0.563 MB / 477.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.1036, allocations: 121 kB / 477.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/0.1037, allocations: 61.81 kB / 478 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.1037, allocations: 0 / 478 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.1039, allocations: 136.9 kB / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.1039, allocations: 0 / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004905/0.1044, allocations: 237.4 kB / 478.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1045, allocations: 85.11 kB / 478.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.1046, allocations: 152.1 kB / 478.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.1046, allocations: 29.7 kB / 478.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.515e-05/0.1047, allocations: 120.5 kB / 478.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.821e-05/0.1047, allocations: 43.67 kB / 478.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.209e-05/0.1048, allocations: 45.7 kB / 478.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1049, allocations: 318.8 kB / 479.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-05/0.105, allocations: 43.91 kB / 479.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.54e-05/0.1051, allocations: 86.84 kB / 479.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.1053, allocations: 154.6 kB / 479.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1053, allocations: 0 / 479.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002615/0.1056, allocations: 161.4 kB / 479.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1056, allocations: 4 kB / 479.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1056, allocations: 4 kB / 479.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1056, allocations: 4 kB / 479.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.441e-05/0.1057, allocations: 28.17 kB / 479.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.1057, allocations: 4.188 kB / 479.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.998e-05/0.1058, allocations: 23.88 kB / 479.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1058, allocations: 4 kB / 479.6 MB, free: 5.238 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.000157/0.106, allocations: 147.5 kB / 479.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.106, allocations: 11.95 kB / 479.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002581/0.1063, allocations: 154.3 kB / 479.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.1063, allocations: 8.016 kB / 480 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.1063, allocations: 0 / 480 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.1063, allocations: 4 kB / 480 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005102/0.1068, allocations: 0.4947 MB / 480.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1068, allocations: 4 kB / 480.5 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.966e-05/0.1069, allocations: 4 kB / 480.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1069, allocations: 0 / 480.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.1069, allocations: 11.98 kB / 480.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1069, allocations: 3.938 kB / 480.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1069, allocations: 0 / 480.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003454/0.1073, allocations: 300.1 kB / 480.8 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.1073, allocations: 89.02 kB / 480.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.1074, allocations: 7.984 kB / 480.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.625e-05/0.1074, allocations: 0 / 480.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.1075, allocations: 15.92 kB / 480.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.1075, allocations: 8 kB / 480.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.041e-05/0.1076, allocations: 98.36 kB / 481 MB, free: 3.785 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1076, allocations: 0 / 481 MB, free: 3.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1079, allocations: 59.81 kB / 481 MB, free: 3.727 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.0004575/0.1083, allocations: 228.7 kB / 481.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002629/0.1086, allocations: 123.8 kB / 481.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1086, allocations: 0 / 481.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.1087, allocations: 63.91 kB / 481.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.109, allocations: 19.89 kB / 481.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007069/0.1098, allocations: 315.6 kB / 481.8 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.11, allocations: 0.7315 MB / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.905e-05/0.1101, allocations: 16.88 kB / 482.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.1101, allocations: 19.42 kB / 482.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1102, allocations: 0 / 482.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of Templates: time 0.00448/0.1146, allocations: 1.962 MB / 484.5 MB, free: 288 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)