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.001183/0.001183, allocations: 107.4 kB / 17.13 MB, free: 5.934 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.001151/0.001151, allocations: 195.2 kB / 18.07 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.214/1.214, allocations: 222.9 MB / 241.8 MB, free: 15.09 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.0544/0.0544, allocations: 12.03 MB / 304 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 59.91 kB / 420.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07223/0.07339, 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.004169/0.07758, allocations: 3.212 MB / 476.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.07898, allocations: 0.9108 MB / 477.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.07911, allocations: 11.88 kB / 477.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002708/0.0794, allocations: 99.16 kB / 477.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.07953, allocations: 51.53 kB / 477.4 MB, free: 8.539 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.0007114/0.08025, allocations: 310.2 kB / 477.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.08063, allocations: 399.3 kB / 478 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002975/0.08093, allocations: 238.2 kB / 478.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.08109, allocations: 179.3 kB / 478.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.0813, allocations: 203.1 kB / 478.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.739e-05/0.08138, allocations: 40 kB / 478.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002115/0.0816, allocations: 155.9 kB / 478.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.08173, allocations: 123.6 kB / 479 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.0819, allocations: 198.8 kB / 479.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000534/0.08244, allocations: 0.5879 MB / 479.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.08245, allocations: 0 / 479.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08246, allocations: 4 kB / 479.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.08247, allocations: 0 / 479.8 MB, free: 6.129 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.001179/0.08365, allocations: 0.9075 MB / 480.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.08369, allocations: 8.031 kB / 480.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.745e-05/0.08378, allocations: 52.36 kB / 480.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.08415, allocations: 326.4 kB / 481 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.0842, allocations: 37.36 kB / 481.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.08426, allocations: 32.38 kB / 481.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/0.08488, allocations: 432.9 kB / 481.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.0849, allocations: 4.125 kB / 481.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/0.08495, allocations: 19.94 kB / 481.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.08496, allocations: 8 kB / 481.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003848/0.08535, allocations: 237.2 kB / 481.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.08672, allocations: 1.287 MB / 483.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.08719, allocations: 298.7 kB / 483.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.08741, allocations: 147.4 kB / 483.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.08745, allocations: 15.92 kB / 483.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003416/0.0878, allocations: 263.1 kB / 483.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.044e-06/0.08781, allocations: 0 / 483.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008745/0.08869, allocations: 0.5249 MB / 484.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/0.08876, allocations: 152.5 kB / 484.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.08899, allocations: 260.8 kB / 484.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.08904, allocations: 41.7 kB / 484.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.08915, allocations: 200.4 kB / 485 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.434e-05/0.08923, allocations: 98.8 kB / 485 MB, free: 500 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.08937, allocations: 114.2 kB / 485.2 MB, free: 380 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.08948, allocations: 346.8 kB / 485.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.0897, allocations: 121.1 kB / 485.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002831/0.09, allocations: 284.4 kB / 485.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007517/0.09076, allocations: 0.672 MB / 486.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.09077, allocations: 4 kB / 486.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007795/0.09156, allocations: 0.5706 MB / 487.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.09161, allocations: 63.39 kB / 487.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.09163, allocations: 4 kB / 487.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.09166, allocations: 8 kB / 487.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.09184, allocations: 63.84 kB / 487.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.09186, allocations: 8 kB / 487.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.09204, allocations: 43.53 kB / 487.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.09208, 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.0002376/0.09233, allocations: 224 kB / 487.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.599e-05/0.09239, allocations: 39.55 kB / 487.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.48e-05/0.09245, allocations: 26.95 kB / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.09246, allocations: 0 / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.09247, allocations: 0 / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.642e-05/0.09253, allocations: 112.6 kB / 487.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.09258, allocations: 15.98 kB / 487.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.382e-05/0.09268, allocations: 7.984 kB / 487.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.09273, allocations: 23.92 kB / 487.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000716/0.09346, allocations: 0.7148 MB / 488.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007253/0.09419, allocations: 0.8297 MB / 489.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001996/0.0944, allocations: 135.9 kB / 489.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.09454, allocations: 160.5 kB / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of Backend: time 3e-07/0.09454, allocations: 0 / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.09618, allocations: 0.7748 MB / 490.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of SimCode: time 0.0009416/0.09713, allocations: 1.024 MB / 491.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of Templates: time 0.008744/0.1059, allocations: 4.969 MB / 496.4 MB, free: 4.934 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)