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.0008937/0.0008938, allocations: 108.9 kB / 16.32 MB, free: 6.391 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.0008919/0.0008918, allocations: 191.1 kB / 17.24 MB, free: 5.922 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.131/1.131, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.04957/0.04957, allocations: 12.04 MB / 303.1 MB, free: 3.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 59.89 kB / 366.5 MB, free: 3.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.155, allocations: 52.32 MB / 418.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.002646/0.1576, allocations: 2.39 MB / 421.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005081/0.1582, allocations: 426.5 kB / 421.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.992e-05/0.1582, allocations: 0 / 421.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.1584, allocations: 31.66 kB / 421.6 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.297e-05/0.1585, allocations: 23.86 kB / 421.7 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.0002105/0.1587, allocations: 91.72 kB / 421.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1589, allocations: 144.1 kB / 421.9 MB, free: 18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.159, allocations: 88.19 kB / 422 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.177e-05/0.1591, allocations: 71.77 kB / 422 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.866e-05/0.1592, allocations: 87.55 kB / 422.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.1592, allocations: 12 kB / 422.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.222e-05/0.1593, allocations: 71.98 kB / 422.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.535e-05/0.1593, allocations: 47.88 kB / 422.3 MB, free: 17.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.938e-05/0.1594, allocations: 75.55 kB / 422.3 MB, free: 17.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.1596, allocations: 225.3 kB / 422.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1596, allocations: 0 / 422.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1596, allocations: 0 / 422.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1596, allocations: 0 / 422.5 MB, free: 17.34 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.0005648/0.1602, allocations: 0.5427 MB / 423.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.392e-05/0.1602, allocations: 8.031 kB / 423.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.044e-05/0.1602, allocations: 20.69 kB / 423.1 MB, free: 16.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.1604, allocations: 220 kB / 423.3 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.1604, allocations: 12.38 kB / 423.3 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.1604, allocations: 16.38 kB / 423.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.1606, allocations: 183.7 kB / 423.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.1607, allocations: 192 / 423.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.1607, allocations: 19.92 kB / 423.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1607, allocations: 4 kB / 423.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.1608, allocations: 83.95 kB / 423.6 MB, free: 16.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00046/0.1613, allocations: 0.5706 MB / 424.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.1615, allocations: 125 kB / 424.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.345e-05/0.1616, allocations: 57.81 kB / 424.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.1616, allocations: 0 / 424.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/0.1617, allocations: 137 kB / 424.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 9.42e-07/0.1617, allocations: 0 / 424.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003617/0.1621, allocations: 233.3 kB / 424.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.1621, allocations: 89.05 kB / 424.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.102e-05/0.1622, allocations: 148.1 kB / 425 MB, free: 14.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.1622, allocations: 25.7 kB / 425 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.1623, allocations: 124.3 kB / 425.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.1623, allocations: 39.53 kB / 425.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.1623, allocations: 45.7 kB / 425.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.699e-05/0.1624, allocations: 318.8 kB / 425.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.18e-05/0.1625, allocations: 39.97 kB / 425.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.119e-05/0.1625, allocations: 92.73 kB / 425.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.1627, allocations: 146.6 kB / 425.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1627, allocations: 4 kB / 425.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002013/0.1629, allocations: 169.3 kB / 426 MB, free: 13.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-06/0.1629, allocations: 4 kB / 426 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.1629, allocations: 4 kB / 426 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1629, allocations: 4.375 kB / 426 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.025e-05/0.163, allocations: 19.98 kB / 426 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.163, allocations: 7.938 kB / 426 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.023e-05/0.1631, allocations: 8.188 kB / 426 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.1631, allocations: 15.92 kB / 426 MB, free: 13.53 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 7.778e-05/0.1632, allocations: 147.5 kB / 426.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.1632, allocations: 11.81 kB / 426.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.1634, allocations: 150.3 kB / 426.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.1634, allocations: 7.984 kB / 426.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1634, allocations: 0 / 426.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1634, allocations: 3.984 kB / 426.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.1638, allocations: 0.4904 MB / 426.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1638, allocations: 4 kB / 426.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.814e-05/0.1638, allocations: 11.94 kB / 426.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1638, allocations: 0 / 426.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.1638, allocations: 7.984 kB / 426.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1638, allocations: 0 / 426.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1639, allocations: 0 / 426.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.1641, allocations: 296.1 kB / 427.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.1641, allocations: 85.02 kB / 427.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.1641, allocations: 7.984 kB / 427.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.384e-05/0.1642, allocations: 4.188 kB / 427.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-05/0.1643, allocations: 15.92 kB / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.1643, allocations: 12 kB / 427.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.264e-05/0.1643, allocations: 98.36 kB / 427.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1643, allocations: 0 / 427.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.1646, allocations: 55.83 kB / 427.4 MB, free: 12.02 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.0003077/0.1649, allocations: 232.7 kB / 427.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002098/0.1651, allocations: 123.8 kB / 427.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1651, allocations: 0 / 427.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.864e-05/0.1652, allocations: 63.91 kB / 427.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.1655, allocations: 20.11 kB / 427.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004579/0.1659, allocations: 320.2 kB / 428.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.166, allocations: 0.7273 MB / 428.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.827e-05/0.1661, allocations: 21.02 kB / 428.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.407e-05/0.1661, allocations: 23.42 kB / 428.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1661, allocations: 0 / 428.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of Templates: time 0.003506/0.1696, allocations: 1.959 MB / 430.9 MB, free: 8.578 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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)