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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 221.5 MB / 230 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009143/0.0009143, allocations: 91.03 kB / 280.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.04964/0.04964, allocations: 11.91 MB / 343.6 MB, free: 3.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.681e-05/1.684e-05, allocations: 2.375 kB / 403.1 MB, free: 45.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08139/0.08143, allocations: 53.36 MB / 456.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3145/0.396, allocations: 86.37 MB / 0.5301 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001662/0.3962, allocations: 72.69 kB / 0.5302 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01977/0.416, allocations: 8.239 MB / 0.5382 GB, free: 16.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.416, allocations: 0 / 0.5382 GB, free: 16.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.321e-05/0.4161, allocations: 11.53 kB / 0.5383 GB, free: 16.12 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = tCPIPSend.pkgIn.pkg addInteger.pkgIn.pkg = packager.pkgOut.pkg getInteger.pkgIn.pkg = tCPIPReceive.pkgOut.pkg addInteger.pkgOut[1].pkg = addInteger.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.001099/0.4172, allocations: 0.8115 MB / 0.539 GB, free: 15.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.4172, allocations: 9.938 kB / 0.5391 GB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.379e-05/0.4173, allocations: 48.25 kB / 0.5391 GB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.4177, allocations: 339.7 kB / 0.5394 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.4178, allocations: 20.58 kB / 0.5394 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.033e-05/0.4178, allocations: 28.91 kB / 0.5395 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003237/0.4182, allocations: 197.9 kB / 0.5397 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.4186, allocations: 367.1 kB / 0.54 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.4187, allocations: 3.938 kB / 0.54 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.4187, allocations: 9.5 kB / 0.54 GB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.4187, allocations: 11.66 kB / 0.54 GB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.4198, allocations: 1.209 MB / 0.5412 GB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.4202, allocations: 278.9 kB / 0.5415 GB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.4204, allocations: 139.8 kB / 0.5416 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.4204, allocations: 7.219 kB / 0.5416 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.4207, allocations: 245.1 kB / 0.5419 GB, free: 14.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.873e-06/0.4207, allocations: 0 / 0.5419 GB, free: 14.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0008352/0.4216, allocations: 427.3 kB / 0.5423 GB, free: 14.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.4216, allocations: 149.2 kB / 0.5424 GB, free: 13.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.4218, allocations: 227.3 kB / 0.5426 GB, free: 13.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.4219, allocations: 33.08 kB / 0.5427 GB, free: 13.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.422, allocations: 201.5 kB / 0.5428 GB, free: 13.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.4221, allocations: 104.6 kB / 0.5429 GB, free: 13.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.937e-05/0.4221, allocations: 3.906 kB / 0.543 GB, free: 13.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.755e-05/0.4222, allocations: 347.1 kB / 0.5433 GB, free: 13.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.4224, allocations: 104 kB / 0.5434 GB, free: 13.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.4226, allocations: 256.6 kB / 0.5436 GB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.4228, allocations: 151.8 kB / 0.5438 GB, free: 13.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4229, allocations: 3.875 kB / 0.5438 GB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00066/0.4235, allocations: 448.5 kB / 0.5442 GB, free: 13.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.4236, allocations: 68.19 kB / 0.5443 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.4236, allocations: 7.75 kB / 0.5443 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.4236, allocations: 7.719 kB / 0.5443 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.4238, allocations: 62.77 kB / 0.5443 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.4238, allocations: 7.75 kB / 0.5443 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.424, allocations: 25.94 kB / 0.5444 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.251e-05/0.424, allocations: 23.34 kB / 0.5444 GB, free: 12.95 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: process.y[1]:DISCRETE(fixed = false ) type: Integer [3] process.y[2]:DISCRETE(fixed = false ) type: Integer [3] process.y[3]:DISCRETE(fixed = false ) type: Integer [3] tCPIPSend.dataSent:DISCRETE(fixed = false ) type: Integer tCPIPReceive.nReceivedBytes:DISCRETE(fixed = false ) "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],$PRE.tCPIPSend.dummy1,tCPIPSend.dummy1,$PRE.tCPIPSend.pkgSize,tCPIPSend.pkgSize,$PRE.tCPIPSend.dataSent,tCPIPSend.dataSent,$PRE.tCPIPSend.dummy2,tCPIPSend.dummy2,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[3],getInteger.y[3],$PRE.getInteger.y[2],getInteger.y[2],$PRE.getInteger.y[1],getInteger.y[1],$PRE.tCPIPReceive.pkgOut.dummy,tCPIPReceive.pkgOut.dummy,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,tCPIPReceive.actTrigger,$PRE.tCPIPReceive.nReceivedBytes,tCPIPReceive.nReceivedBytes,$PRE.tCPIPReceive.accepted,tCPIPReceive.accepted,$PRE.tCPIPReceive.block_,tCPIPReceive.block_,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,$PRE.tCPIPSend.accepted,tCPIPSend.accepted,$PRE.tCPIPSend.block_,tCPIPSend.block_,process.trigger,tCPIPSend.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addInteger.pkgIn.autoPkgBitSize,tCPIPSend.pkgIn.userPkgBitSize,tCPIPSend.pkgIn.autoPkgBitSize,tCPIPSend.bufferSize,tCPIPReceive.bufferSize,getInteger.pkgIn.autoPkgBitSize) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.4242, allocations: 173.6 kB / 0.5446 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.4242, allocations: 38.81 kB / 0.5446 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.388e-05/0.4243, allocations: 26.64 kB / 0.5446 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4243, allocations: 7.656 kB / 0.5446 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4243, allocations: 4.125 kB / 0.5446 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4243, allocations: 0 / 0.5446 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.426, allocations: 0.7965 MB / 0.5454 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.426, allocations: 3.875 kB / 0.5454 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.936e-05/0.426, allocations: 8.375 kB / 0.5454 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.426, allocations: 3.875 kB / 0.5454 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.4261, allocations: 9 kB / 0.5454 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.4261, allocations: 3.875 kB / 0.5454 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4261, allocations: 4 kB / 0.5454 GB, free: 28.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006696/0.4268, allocations: 0.5638 MB / 0.546 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.4268, allocations: 108.4 kB / 0.5461 GB, free: 28.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.4269, allocations: 11.16 kB / 0.5461 GB, free: 28.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.427, allocations: 10.8 kB / 0.5461 GB, free: 28.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.4271, allocations: 21.75 kB / 0.5461 GB, free: 28.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.528e-05/0.4271, allocations: 14.62 kB / 0.5462 GB, free: 28.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001089/0.4272, allocations: 150.2 kB / 0.5463 GB, free: 28.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4272, allocations: 0 / 0.5463 GB, free: 28.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004822/0.4277, allocations: 145.4 kB / 0.5464 GB, free: 28 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 36 (tCPIPSend.internalTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addInteger.pkgIn.autoPkgBitSize,tCPIPSend.pkgIn.userPkgBitSize,tCPIPSend.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,process.trigger,tCPIPReceive.actTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,tCPIPReceive.pkgOut.dummy,tCPIPReceive.nReceivedBytes,tCPIPReceive.accepted,tCPIPReceive.bufferSize,tCPIPReceive.block_,getInteger.pkgIn.autoPkgBitSize,getInteger.y[1],getInteger.y[2],getInteger.y[3],getInteger.dummy,packager.pkgOut.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,tCPIPSend.dataSent,tCPIPSend.accepted,tCPIPSend.bufferSize,tCPIPSend.dummy1,tCPIPSend.dummy2,tCPIPSend.pkgSize,tCPIPSend.block_,process.y[1],process.y[2],process.y[3]) * Number of discrete states: 2 (tCPIPReceive.block_,tCPIPSend.block_) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 21 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008341/0.4285, allocations: 442 kB / 0.5469 GB, free: 27.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000522/0.4291, allocations: 454.2 kB / 0.5473 GB, free: 27.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.4291, allocations: 5.594 kB / 0.5473 GB, free: 27.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.4293, allocations: 168.5 kB / 0.5475 GB, free: 27.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.4296, allocations: 37.91 kB / 0.5475 GB, free: 27.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007038/0.4303, allocations: 472.4 kB / 0.5479 GB, free: 27.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.4306, allocations: 0.8158 MB / 0.5487 GB, free: 26.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.467e-05/0.4307, allocations: 43.84 kB / 0.5488 GB, free: 26.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.473e-05/0.4308, allocations: 27.16 kB / 0.5488 GB, free: 26.65 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4308, allocations: 0 / 0.5488 GB, free: 26.65 MB / 378.7 MB Notification: Performance of Templates: time 0.0071/0.4379, allocations: 4.402 MB / 0.5531 GB, free: 26.16 MB / 378.7 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)