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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIPServer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIPServer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 176.7 kB / 8.051 MB, free: 1.023 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.411/1.411, allocations: 221.5 MB / 230 MB, free: 7.559 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.001027/0.001027, allocations: 89.8 kB / 280.9 MB, free: 5.312 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.05046/0.05046, allocations: 11.91 MB / 343.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.179e-05/2.173e-05, allocations: 3.5 kB / 403.2 MB, free: 45.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 53.36 MB / 456.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3909/0.4982, allocations: 86.37 MB / 0.5302 GB, free: 16.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.4985, allocations: 69.89 kB / 0.5303 GB, free: 16.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02225/0.5208, allocations: 8.236 MB / 0.5383 GB, free: 15.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.5208, allocations: 192 / 0.5383 GB, free: 15.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.015e-05/0.5208, allocations: 9.5 kB / 0.5383 GB, free: 15.96 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.0012/0.5221, allocations: 0.8212 MB / 0.5391 GB, free: 15.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.5221, allocations: 11.34 kB / 0.5392 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.414e-05/0.5222, allocations: 48.06 kB / 0.5392 GB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.5226, allocations: 346.6 kB / 0.5395 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.5226, allocations: 20.56 kB / 0.5395 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.5227, allocations: 26.53 kB / 0.5396 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003631/0.5231, allocations: 194.9 kB / 0.5398 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005197/0.5236, allocations: 373.8 kB / 0.5401 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.5236, allocations: 0 / 0.5401 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.5237, allocations: 10.12 kB / 0.5401 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.5237, allocations: 11.75 kB / 0.5401 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.5249, allocations: 1.208 MB / 0.5413 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004746/0.5254, allocations: 277.5 kB / 0.5416 GB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.5256, allocations: 136.1 kB / 0.5417 GB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.947e-05/0.5256, allocations: 4.344 kB / 0.5417 GB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003584/0.526, allocations: 242.8 kB / 0.5419 GB, free: 14.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.275e-06/0.526, allocations: 0 / 0.5419 GB, free: 14.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0008123/0.5268, allocations: 423.8 kB / 0.5424 GB, free: 13.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.5269, allocations: 154.4 kB / 0.5425 GB, free: 13.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.5271, allocations: 227.5 kB / 0.5427 GB, free: 13.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.5271, allocations: 36.17 kB / 0.5427 GB, free: 13.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.093e-05/0.5272, allocations: 204.1 kB / 0.5429 GB, free: 13.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.5273, allocations: 90.09 kB / 0.543 GB, free: 13.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.5273, allocations: 0.75 kB / 0.543 GB, free: 13.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005341/0.5278, allocations: 353.3 kB / 0.5434 GB, free: 29.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.528, allocations: 98.8 kB / 0.5435 GB, free: 29.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.5282, allocations: 256.2 kB / 0.5437 GB, free: 28.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.5285, allocations: 157.2 kB / 0.5439 GB, free: 28.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5285, allocations: 3.781 kB / 0.5439 GB, free: 28.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006862/0.5292, allocations: 454.4 kB / 0.5443 GB, free: 28.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.435e-05/0.5293, allocations: 68.64 kB / 0.5444 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/0.5293, allocations: 7.812 kB / 0.5444 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.088e-05/0.5293, allocations: 7.75 kB / 0.5444 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.5295, allocations: 63.95 kB / 0.5444 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.5296, allocations: 11.09 kB / 0.5444 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000158/0.5297, allocations: 23.41 kB / 0.5445 GB, free: 28.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.5298, allocations: 26.88 kB / 0.5445 GB, free: 28.79 MB / 378.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.000236/0.53, allocations: 179.6 kB / 0.5447 GB, free: 28.64 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008004/0.5308, allocations: 424.6 kB / 0.5451 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.703e-05/0.5309, allocations: 33.28 kB / 0.5451 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.997e-05/0.531, allocations: 25.47 kB / 0.5451 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.531, allocations: 8.969 kB / 0.5451 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.531, allocations: 1.562 kB / 0.5451 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.531, allocations: 2.859 kB / 0.5451 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.5322, allocations: 0.7896 MB / 0.5459 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.5322, allocations: 3.938 kB / 0.5459 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.524e-05/0.5322, allocations: 13.72 kB / 0.5459 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.5323, allocations: 7.875 kB / 0.5459 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.5323, allocations: 6.453 kB / 0.5459 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.5323, allocations: 7.781 kB / 0.5459 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.5323, allocations: 3.953 kB / 0.546 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006937/0.533, allocations: 0.5564 MB / 0.5465 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.5331, allocations: 110.9 kB / 0.5466 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/0.5331, allocations: 9.281 kB / 0.5466 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.5332, allocations: 2.719 kB / 0.5466 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.5333, allocations: 27.02 kB / 0.5466 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.5333, allocations: 21.75 kB / 0.5467 GB, free: 27.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001122/0.5335, allocations: 148.7 kB / 0.5468 GB, free: 27.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5335, allocations: 3.938 kB / 0.5468 GB, free: 27.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005614/0.534, allocations: 139 kB / 0.5469 GB, free: 27.79 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.002052/0.5361, allocations: 1.667 MB / 0.5486 GB, free: 26.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005795/0.5367, allocations: 455 kB / 0.549 GB, free: 26.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5367, allocations: 5.688 kB / 0.549 GB, free: 26.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.5369, allocations: 160.2 kB / 0.5492 GB, free: 26.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.5372, allocations: 35.03 kB / 0.5492 GB, free: 26.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.5383, allocations: 0.5896 MB / 0.5498 GB, free: 26.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.5387, allocations: 0.8164 MB / 0.5506 GB, free: 25.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.5389, allocations: 46.69 kB / 0.5506 GB, free: 25.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.539, allocations: 114.4 kB / 0.5507 GB, free: 25.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.539, allocations: 0 / 0.5507 GB, free: 25.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.5652, allocations: 7.078 MB / 0.5576 GB, free: 24.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/0.5655, allocations: 227.2 kB / 0.5578 GB, free: 24.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.538, allocations: 0 / 0.5578 GB, free: 24.54 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIPServer_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_TCPIPServer.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.pipe 2>&1)