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.00102/0.00102, allocations: 110.6 kB / 17.09 MB, free: 5.77 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.0009391/0.0009392, allocations: 195 kB / 18.02 MB, free: 4.953 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.214/1.214, allocations: 222.9 MB / 241.7 MB, free: 15.14 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.05432/0.05432, allocations: 12.04 MB / 303.9 MB, free: 3.137 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.91 kB / 367.9 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2082, allocations: 52.32 MB / 420.2 MB, free: 20.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003239/0.2115, allocations: 2.391 MB / 422.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00062/0.2121, allocations: 422.5 kB / 423 MB, free: 18.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.39e-05/0.2122, allocations: 7.938 kB / 423.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.2124, allocations: 39.7 kB / 423.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001147/0.2125, allocations: 19.81 kB / 423.1 MB, free: 18.1 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.0002692/0.2128, allocations: 95.33 kB / 423.2 MB, free: 18.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001774/0.213, allocations: 139.7 kB / 423.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.2132, allocations: 86.44 kB / 423.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.548e-05/0.2132, allocations: 71.7 kB / 423.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.2134, allocations: 83.61 kB / 423.6 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/0.2134, allocations: 12 kB / 423.6 MB, free: 17.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.2136, allocations: 75.97 kB / 423.7 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.247e-05/0.2136, allocations: 47.83 kB / 423.7 MB, free: 17.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.411e-05/0.2137, allocations: 71.61 kB / 423.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.2139, allocations: 233.1 kB / 424 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.214, allocations: 4 kB / 424 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.214, allocations: 0 / 424 MB, free: 17.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.214, allocations: 0 / 424 MB, free: 17.21 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.0007056/0.2147, allocations: 0.5464 MB / 424.6 MB, free: 16.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.2147, allocations: 8.031 kB / 424.6 MB, free: 16.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.2148, allocations: 20.75 kB / 424.6 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.2149, allocations: 212.1 kB / 424.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.2149, allocations: 16.31 kB / 424.8 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.215, allocations: 12.38 kB / 424.8 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.2152, allocations: 183.7 kB / 425 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.2153, allocations: 192 / 425 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.2153, allocations: 7.938 kB / 425 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2153, allocations: 4 kB / 425 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.2154, allocations: 95.88 kB / 425.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005477/0.216, allocations: 0.5628 MB / 425.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/0.2162, allocations: 125.1 kB / 425.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.991e-05/0.2164, allocations: 61.81 kB / 425.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.2164, allocations: 7.938 kB / 425.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001425/0.2165, allocations: 128.1 kB / 426 MB, free: 15.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.203e-06/0.2165, allocations: 0 / 426 MB, free: 15.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004275/0.217, allocations: 241.3 kB / 426.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.217, allocations: 89.09 kB / 426.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.17e-05/0.2171, allocations: 145.7 kB / 426.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.2171, allocations: 25.7 kB / 426.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.2172, allocations: 124.3 kB / 426.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.2172, allocations: 39.53 kB / 426.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/0.2173, allocations: 49.69 kB / 426.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.2173, allocations: 318.8 kB / 427 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.645e-05/0.2174, allocations: 35.98 kB / 427 MB, free: 13.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.247e-05/0.2175, allocations: 88.73 kB / 427.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.2176, allocations: 150.7 kB / 427.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2176, allocations: 3.984 kB / 427.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002148/0.2179, allocations: 165.3 kB / 427.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.2179, allocations: 4 kB / 427.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2179, allocations: 4 kB / 427.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.2179, allocations: 4 kB / 427.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.964e-05/0.218, allocations: 28.17 kB / 427.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.218, allocations: 7.938 kB / 427.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.652e-05/0.2181, allocations: 4 kB / 427.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.2181, allocations: 4 kB / 427.5 MB, free: 13.42 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 9.337e-05/0.2182, allocations: 147.5 kB / 427.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.428e-05/0.2182, allocations: 15.81 kB / 427.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002259/0.2185, allocations: 158.3 kB / 427.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.2185, allocations: 0 / 427.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2185, allocations: 4 kB / 427.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.2185, allocations: 480 / 427.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/0.2189, allocations: 0.4942 MB / 428.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2189, allocations: 4 kB / 428.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.894e-05/0.219, allocations: 4 kB / 428.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.219, allocations: 3.984 kB / 428.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.219, allocations: 8 kB / 428.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.219, allocations: 0 / 428.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.219, allocations: 0 / 428.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.2193, allocations: 300.1 kB / 428.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.2193, allocations: 88.95 kB / 428.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.2193, allocations: 7.938 kB / 428.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.965e-05/0.2194, allocations: 256 / 428.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/0.2195, allocations: 15.97 kB / 428.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.2195, allocations: 11.98 kB / 428.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.2195, allocations: 107.2 kB / 428.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2195, allocations: 0 / 428.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.2198, allocations: 47.84 kB / 428.9 MB, free: 11.91 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.0003863/0.2202, allocations: 231.6 kB / 429.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002397/0.2205, allocations: 127.8 kB / 429.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2205, allocations: 0 / 429.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.457e-05/0.2206, allocations: 64 kB / 429.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.2209, allocations: 20.11 kB / 429.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005792/0.2215, allocations: 304 kB / 429.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.2216, allocations: 0.7276 MB / 430.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.557e-05/0.2217, allocations: 20.86 kB / 430.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/0.2217, allocations: 19.38 kB / 430.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2217, allocations: 0 / 430.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Templates: time 0.004083/0.2258, allocations: 1.958 MB / 432.3 MB, free: 8.477 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 cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)