Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.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.Blocks.Examples.TestSerialPackager_TCPIPServer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 114.7 kB / 17.14 MB, free: 5.914 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.00112/0.00112, allocations: 194.9 kB / 18.07 MB, free: 4.996 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.299/1.299, allocations: 222.9 MB / 241.8 MB, free: 15.08 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.05792/0.05792, allocations: 12.05 MB / 304 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 67.89 kB / 420.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07869/0.07981, allocations: 52.32 MB / 473.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer): time 0.004274/0.08412, allocations: 3.22 MB / 476.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.08571, allocations: 0.903 MB / 477.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.08594, allocations: 19.81 kB / 477.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.08629, allocations: 99.17 kB / 477.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.08644, allocations: 43.58 kB / 477.4 MB, free: 8.535 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1308:7-1320:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.readPTCPIPServer' contains a call to impure function 'Modelica_DeviceDrivers.Communication.TCPIPServer_.readP'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. [/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:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:171:5-182:15:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getPos' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getPos'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1322:7-1334:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.sendPTCPIPServer' contains a call to impure function 'Modelica_DeviceDrivers.Communication.TCPIPServer_.sendP'. Notification: Performance of NFTyping.typeClassSections: time 0.0008217/0.08727, allocations: 299.1 kB / 477.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.0877, allocations: 411.3 kB / 478.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.08803, allocations: 230.2 kB / 478.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.08822, allocations: 171.4 kB / 478.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002499/0.08847, allocations: 195.1 kB / 478.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-05/0.08855, allocations: 40 kB / 478.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000258/0.08881, allocations: 171.9 kB / 478.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.08895, allocations: 123.6 kB / 479 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000179/0.08913, allocations: 202.9 kB / 479.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006401/0.08978, allocations: 0.5801 MB / 479.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.08979, allocations: 0 / 479.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.0898, allocations: 0 / 479.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.08982, allocations: 0 / 479.7 MB, free: 6.137 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addInteger.pkgOut[1].pkg = tCPIPSend.pkgIn.pkg packager.pkgOut.pkg = addInteger.pkgIn.pkg tCPIPReceive.pkgOut.pkg = getInteger.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.001367/0.09119, allocations: 0.9113 MB / 480.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.09124, allocations: 8.031 kB / 480.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.09135, allocations: 56.36 kB / 480.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.09175, allocations: 330.5 kB / 481 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.09179, allocations: 29.36 kB / 481.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/0.09185, allocations: 40.38 kB / 481.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.09252, allocations: 424.8 kB / 481.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.09255, allocations: 4.188 kB / 481.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.09259, allocations: 23.92 kB / 481.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.09261, allocations: 12 kB / 481.6 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003974/0.09301, allocations: 237.1 kB / 481.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.09451, allocations: 1.287 MB / 483.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004813/0.095, allocations: 302.7 kB / 483.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.09522, allocations: 147.4 kB / 483.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.09526, allocations: 4 kB / 483.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/0.09563, allocations: 267.1 kB / 483.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.134e-06/0.09564, allocations: 0 / 483.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009047/0.09655, allocations: 0.5283 MB / 484.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.09663, allocations: 152.5 kB / 484.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.09688, allocations: 256.8 kB / 484.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.09693, allocations: 41.7 kB / 484.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.09706, allocations: 204.6 kB / 484.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.782e-05/0.09715, allocations: 98.8 kB / 485 MB, free: 496 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.0973, allocations: 110.2 kB / 485.2 MB, free: 380 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.09743, allocations: 346.8 kB / 485.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/0.09767, allocations: 121.1 kB / 485.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/0.09797, allocations: 276.4 kB / 485.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008608/0.09884, allocations: 0.6759 MB / 486.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.802e-06/0.09886, allocations: 448 / 486.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008587/0.09972, allocations: 0.5624 MB / 487.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.908e-05/0.09978, allocations: 67.39 kB / 487.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.09981, allocations: 8 kB / 487.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.09983, allocations: 8 kB / 487.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.1, allocations: 64.47 kB / 487.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.1001, allocations: 11.94 kB / 487.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.1003, allocations: 51.53 kB / 487.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.1003, allocations: 27.98 kB / 487.4 MB, free: 13.96 MB / 366.1 MB Warning: Assuming fixed start value for the following 5 variables: process.y[1]:DISCRETE(flow=false fixed = true ) type: Integer [3] process.y[2]:DISCRETE(flow=false fixed = true ) type: Integer [3] process.y[3]:DISCRETE(flow=false fixed = true ) type: Integer [3] tCPIPSend.dataSent:DISCRETE(fixed = true ) type: Integer tCPIPReceive.nReceivedBytes:DISCRETE(flow=false fixed = true ) "Number of received bytes" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.process.y[1],process.y[1],$PRE.process.y[2],process.y[2],$PRE.process.y[3],process.y[3],tCPIPSend.dummy1,$PRE.tCPIPSend.dummy1,tCPIPSend.pkgSize,$PRE.tCPIPSend.pkgSize,$PRE.tCPIPSend.dataSent,tCPIPSend.dataSent,tCPIPSend.dummy2,$PRE.tCPIPSend.dummy2,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[3],$PRE.getInteger.y[3],getInteger.y[2],$PRE.getInteger.y[2],getInteger.y[1],$PRE.getInteger.y[1],tCPIPReceive.pkgOut.dummy,$PRE.tCPIPReceive.pkgOut.dummy,$PRE.tCPIPSend.block_,$PRE.tCPIPSend.accepted,$PRE.tCPIPReceive.block_,$PRE.tCPIPReceive.accepted,$PRE.tCPIPReceive.nReceivedBytes,tCPIPSend.block_,tCPIPSend.accepted,addInteger.pkgOut[1].backwardTrigger,addInteger.pkgOut[1].trigger,tCPIPReceive.block_,tCPIPReceive.accepted,tCPIPReceive.recvTrigger,tCPIPReceive.nReceivedBytes,tCPIPReceive.conditionalInternalTrigger,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tCPIPSend.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,tCPIPSend.bufferSize,tCPIPSend.pkgIn.autoPkgBitSize,tCPIPSend.pkgIn.userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,getInteger.pkgIn.autoPkgBitSize,tCPIPReceive.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * 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.0002874/0.1006, allocations: 223.9 kB / 487.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/0.1007, allocations: 35.55 kB / 487.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.294e-05/0.1007, allocations: 26.97 kB / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.954e-06/0.1007, allocations: 3.984 kB / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.1008, allocations: 4 kB / 487.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/0.1008, allocations: 104.7 kB / 487.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/0.1009, allocations: 11.98 kB / 487.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.399e-05/0.101, allocations: 11.98 kB / 487.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.101, allocations: 15.92 kB / 487.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007719/0.1018, allocations: 0.7263 MB / 488.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007452/0.1026, allocations: 0.8218 MB / 489.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002097/0.1028, allocations: 149.5 kB / 489.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.1029, allocations: 156.5 kB / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of Backend: time 4.41e-07/0.1029, allocations: 0 / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.1048, allocations: 0.7762 MB / 490.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of SimCode: time 0.001166/0.106, allocations: 1.02 MB / 491.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of Templates: time 0.009458/0.1155, allocations: 4.984 MB / 496.4 MB, free: 4.922 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe 2>&1)