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.001078/0.001078, allocations: 107.5 kB / 17.07 MB, free: 5.68 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.001037/0.001037, allocations: 196 kB / 18.01 MB, free: 5.02 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.281/1.281, allocations: 222.9 MB / 241.7 MB, free: 15.1 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.05485/0.05485, allocations: 12.04 MB / 303.9 MB, free: 3.113 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.91 kB / 367.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2087, allocations: 52.32 MB / 420.2 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003639/0.2124, allocations: 2.394 MB / 422.6 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006794/0.2131, allocations: 416.8 kB / 423 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.845e-05/0.2132, allocations: 4 kB / 423 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.2134, allocations: 35.64 kB / 423.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.2136, allocations: 23.86 kB / 423.1 MB, free: 18.23 MB / 302.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.0002719/0.2139, allocations: 91.66 kB / 423.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001685/0.214, allocations: 147.2 kB / 423.3 MB, free: 18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.2142, allocations: 91.89 kB / 423.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.568e-05/0.2143, allocations: 63.78 kB / 423.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/0.2145, allocations: 87.55 kB / 423.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.2145, allocations: 16 kB / 423.6 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.2146, allocations: 75.95 kB / 423.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.529e-05/0.2147, allocations: 39.91 kB / 423.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.2147, allocations: 75.55 kB / 423.8 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.215, allocations: 237.1 kB / 424 MB, free: 17.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.215, allocations: 0 / 424 MB, free: 17.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.215, allocations: 4 kB / 424 MB, free: 17.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.215, allocations: 0 / 424 MB, free: 17.33 MB / 302.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.0007573/0.2158, allocations: 0.5428 MB / 424.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.2158, allocations: 8.031 kB / 424.6 MB, free: 16.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.611e-05/0.2159, allocations: 16.75 kB / 424.6 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.216, allocations: 220 kB / 424.8 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.216, allocations: 12.38 kB / 424.8 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.2161, allocations: 16.38 kB / 424.8 MB, free: 16.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.2164, allocations: 191.6 kB / 425 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.2164, allocations: 4.172 kB / 425 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.2164, allocations: 11.94 kB / 425 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2164, allocations: 0 / 425 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.2166, allocations: 83.95 kB / 425.1 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005643/0.2171, allocations: 0.5589 MB / 425.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.2174, allocations: 133 kB / 425.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.987e-05/0.2175, allocations: 57.81 kB / 425.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.2175, allocations: 0 / 425.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.2177, allocations: 133 kB / 426 MB, free: 15.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.092e-06/0.2177, allocations: 0 / 426 MB, free: 15.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004141/0.2181, allocations: 237.5 kB / 426.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.2181, allocations: 89.03 kB / 426.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.473e-05/0.2182, allocations: 143.6 kB / 426.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.2182, allocations: 25.7 kB / 426.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.2183, allocations: 120.4 kB / 426.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.2183, allocations: 39.48 kB / 426.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.2184, allocations: 53.69 kB / 426.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.962e-05/0.2184, allocations: 322.8 kB / 427 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.454e-05/0.2185, allocations: 32.05 kB / 427 MB, free: 14.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.053e-05/0.2186, allocations: 96.73 kB / 427.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.2187, allocations: 142.7 kB / 427.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.2187, allocations: 0 / 427.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002179/0.219, allocations: 181.2 kB / 427.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.219, allocations: 11.98 kB / 427.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.219, allocations: 0 / 427.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.219, allocations: 4 kB / 427.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.019e-05/0.2191, allocations: 19.98 kB / 427.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2191, allocations: 4 kB / 427.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.598e-05/0.2192, allocations: 4 kB / 427.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.2192, allocations: 8 kB / 427.5 MB, free: 13.54 MB / 302.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 8.877e-05/0.2193, allocations: 159.6 kB / 427.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.2193, allocations: 15.81 kB / 427.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.2196, allocations: 154.3 kB / 427.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2196, allocations: 0 / 427.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.2196, allocations: 0 / 427.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.2196, allocations: 4 kB / 427.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003922/0.22, allocations: 498.7 kB / 428.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.22, allocations: 0 / 428.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.064e-05/0.22, allocations: 16.03 kB / 428.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.22, allocations: 3.938 kB / 428.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.2201, allocations: 7.984 kB / 428.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2201, allocations: 0 / 428.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2201, allocations: 0 / 428.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.2203, allocations: 294.7 kB / 428.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.336e-05/0.2204, allocations: 89 kB / 428.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.2204, allocations: 8 kB / 428.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.083e-05/0.2205, allocations: 4 kB / 428.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.926e-05/0.2205, allocations: 11.92 kB / 428.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.2205, allocations: 8 kB / 428.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.17e-05/0.2206, allocations: 103.2 kB / 428.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2206, allocations: 0 / 428.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.2209, allocations: 47.84 kB / 428.9 MB, free: 12.03 MB / 302.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.0004017/0.2213, allocations: 240.2 kB / 429.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002183/0.2215, allocations: 115.8 kB / 429.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2216, allocations: 0 / 429.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.573e-05/0.2217, allocations: 64.28 kB / 429.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.2219, allocations: 22.33 kB / 429.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000592/0.2225, allocations: 308 kB / 429.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.2227, allocations: 0.7195 MB / 430.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.591e-05/0.2228, allocations: 32.94 kB / 430.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/0.2228, allocations: 15.44 kB / 430.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2228, allocations: 0 / 430.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Templates: time 0.004339/0.2271, allocations: 1.96 MB / 432.3 MB, free: 8.59 MB / 302.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 gbode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)