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.001218/0.001218, allocations: 103.4 kB / 16.45 MB, free: 6.43 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.001266/0.001266, allocations: 189 kB / 17.39 MB, free: 5.656 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.246/1.246, allocations: 222.9 MB / 241.1 MB, free: 15.13 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.05249/0.05249, allocations: 12.05 MB / 303.3 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 59.91 kB / 420 MB, free: 17.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 52.34 MB / 472.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003827/0.1054, allocations: 2.375 MB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006795/0.1061, allocations: 430.5 kB / 475.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.842e-05/0.1062, allocations: 8 kB / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.1064, allocations: 31.67 kB / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.1065, allocations: 23.84 kB / 475.2 MB, free: 9.977 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.0002695/0.1068, allocations: 87.73 kB / 475.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.107, allocations: 147.6 kB / 475.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.1072, allocations: 96.11 kB / 475.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.42e-05/0.1072, allocations: 59.78 kB / 475.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.1074, allocations: 83.61 kB / 475.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.1074, allocations: 12 kB / 475.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.1075, allocations: 83.91 kB / 475.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.046e-05/0.1076, allocations: 43.89 kB / 475.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.657e-05/0.1077, allocations: 79.53 kB / 475.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.108, allocations: 231.3 kB / 476.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.108, allocations: 0 / 476.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.108, allocations: 0 / 476.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.108, allocations: 0 / 476.1 MB, free: 9.07 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.0008554/0.1089, allocations: 0.5418 MB / 476.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1089, allocations: 8.031 kB / 476.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.219e-05/0.109, allocations: 24.67 kB / 476.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.1092, allocations: 216.1 kB / 476.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.1092, allocations: 20.38 kB / 476.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.467e-05/0.1092, allocations: 12.38 kB / 476.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003161/0.1096, allocations: 183.7 kB / 477.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.1096, allocations: 4.172 kB / 477.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.1096, allocations: 7.938 kB / 477.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.1096, allocations: 4 kB / 477.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.1098, allocations: 95.83 kB / 477.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006968/0.1105, allocations: 0.5589 MB / 477.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.1108, allocations: 125 kB / 477.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.322e-05/0.1109, allocations: 61.81 kB / 478 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.1109, allocations: 0 / 478 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.1111, allocations: 136.1 kB / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1111, allocations: 0 / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004625/0.1116, allocations: 233.3 kB / 478.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.1116, allocations: 81.11 kB / 478.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.1118, allocations: 153.7 kB / 478.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.1118, allocations: 29.7 kB / 478.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.485e-05/0.1119, allocations: 124.4 kB / 478.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.568e-05/0.1119, allocations: 39.48 kB / 478.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.126e-05/0.112, allocations: 41.7 kB / 478.8 MB, free: 6.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1121, allocations: 326.8 kB / 479.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-05/0.1122, allocations: 31.97 kB / 479.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.1123, allocations: 102.7 kB / 479.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.1125, allocations: 150.6 kB / 479.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1125, allocations: 0 / 479.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002568/0.1128, allocations: 165.3 kB / 479.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.1128, allocations: 5.719 kB / 479.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1128, allocations: 4 kB / 479.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1128, allocations: 4 kB / 479.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.238e-05/0.1129, allocations: 23.92 kB / 479.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.1129, allocations: 4 kB / 479.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.056e-05/0.113, allocations: 20.11 kB / 479.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.113, allocations: 4 kB / 479.6 MB, free: 5.258 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.0001167/0.1131, allocations: 147.8 kB / 479.8 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.1132, allocations: 19.8 kB / 479.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.1134, allocations: 158.6 kB / 479.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1134, allocations: 4 kB / 479.9 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1135, allocations: 3.984 kB / 479.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1135, allocations: 4 kB / 480 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005095/0.114, allocations: 0.4943 MB / 480.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.114, allocations: 0 / 480.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.947e-05/0.114, allocations: 4 kB / 480.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.114, allocations: 0 / 480.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.1141, allocations: 7.984 kB / 480.5 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1141, allocations: 3.938 kB / 480.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1141, allocations: 0 / 480.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003392/0.1144, allocations: 296.2 kB / 480.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.687e-05/0.1145, allocations: 88.95 kB / 480.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.1145, allocations: 3.984 kB / 480.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.287e-05/0.1146, allocations: 8 kB / 480.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.1146, allocations: 11.92 kB / 480.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1146, allocations: 4 kB / 480.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.576e-05/0.1147, allocations: 99.27 kB / 481 MB, free: 3.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1147, allocations: 0 / 481 MB, free: 3.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.115, allocations: 59.83 kB / 481 MB, free: 3.746 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.0004333/0.1154, allocations: 229.4 kB / 481.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002495/0.1157, allocations: 119.8 kB / 481.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1157, allocations: 0 / 481.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.1158, allocations: 67.91 kB / 481.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.1161, allocations: 15.98 kB / 481.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005958/0.1167, allocations: 319.8 kB / 481.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.117, allocations: 0.7316 MB / 482.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.863e-05/0.1171, allocations: 20.86 kB / 482.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.944e-05/0.1171, allocations: 19.42 kB / 482.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1172, allocations: 0 / 482.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of Templates: time 0.004721/0.1219, allocations: 1.959 MB / 484.5 MB, free: 308 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)