Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.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_UDPAutoBufferSize,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPAutoBufferSize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPAutoBufferSize",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.001608/0.001608, allocations: 177.6 kB / 8.045 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.448/1.448, allocations: 221.5 MB / 230 MB, free: 7.5 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.001174/0.001174, allocations: 108.2 kB / 280.9 MB, free: 5.246 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.04935/0.04935, allocations: 11.91 MB / 343.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.114e-05/2.146e-05, allocations: 3.438 kB / 403.2 MB, free: 45.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 53.36 MB / 456.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3939/0.5101, allocations: 85.33 MB / 0.5292 GB, free: 16.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5104, allocations: 78.33 kB / 0.5293 GB, free: 16.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02925/0.5397, allocations: 9.419 MB / 0.5385 GB, free: 16.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5397, allocations: 0 / 0.5385 GB, free: 16.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.595e-05/0.5398, allocations: 14.41 kB / 0.5385 GB, free: 16.02 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = uDPReceive.pkgOut.pkg addReal.pkgIn.pkg = packager.pkgOut.pkg getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002228/0.542, allocations: 1.007 MB / 0.5395 GB, free: 15.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/0.5421, allocations: 11.62 kB / 0.5395 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.5424, allocations: 50.39 kB / 0.5395 GB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006264/0.543, allocations: 340.2 kB / 0.5399 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.293e-05/0.5431, allocations: 18.67 kB / 0.5399 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.169e-05/0.5431, allocations: 30.06 kB / 0.5399 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004694/0.5436, allocations: 221 kB / 0.5401 GB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006947/0.5443, allocations: 417.8 kB / 0.5405 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.5443, allocations: 0 / 0.5405 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.5444, allocations: 13.28 kB / 0.5405 GB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.5444, allocations: 11.66 kB / 0.5405 GB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.5461, allocations: 1.266 MB / 0.5418 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004662/0.5466, allocations: 276.4 kB / 0.542 GB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.5468, allocations: 145.3 kB / 0.5422 GB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.5468, allocations: 6.969 kB / 0.5422 GB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003067/0.5471, allocations: 242 kB / 0.5424 GB, free: 13.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.036e-06/0.5472, allocations: 0 / 0.5424 GB, free: 13.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.00108/0.5482, allocations: 487.5 kB / 0.5429 GB, free: 13.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.5483, allocations: 154.9 kB / 0.543 GB, free: 13.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.5486, allocations: 207.4 kB / 0.5432 GB, free: 13.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.5486, allocations: 43.7 kB / 0.5433 GB, free: 13.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.5488, allocations: 209.3 kB / 0.5435 GB, free: 13.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.5489, allocations: 95.34 kB / 0.5436 GB, free: 13.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.182e-05/0.549, allocations: 0.5 kB / 0.5436 GB, free: 13.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5491, allocations: 342.8 kB / 0.5439 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.5493, allocations: 105.3 kB / 0.544 GB, free: 13.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.5497, allocations: 310.6 kB / 0.5443 GB, free: 12.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004815/0.5502, allocations: 185.5 kB / 0.5445 GB, free: 12.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/0.5502, allocations: 1.5 kB / 0.5445 GB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008221/0.551, allocations: 446.6 kB / 0.5449 GB, free: 12.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.551, allocations: 7.75 kB / 0.5449 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5511, allocations: 7.75 kB / 0.5449 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.5511, allocations: 12.47 kB / 0.5449 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.5514, allocations: 84.66 kB / 0.545 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.5514, allocations: 14.45 kB / 0.545 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.5516, allocations: 35.27 kB / 0.545 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.5516, allocations: 25.73 kB / 0.5451 GB, free: 12.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.uDPSend.dummy,uDPSend.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],$PRE.getFloat.dummy,getFloat.dummy,$PRE.getFloat.y[2],getFloat.y[2],$PRE.getFloat.y[1],getFloat.y[1],$PRE.getFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getReal.dummy,getReal.dummy,$PRE.getReal.y[3],getReal.y[3],$PRE.getReal.y[2],getReal.y[2],$PRE.getReal.y[1],getReal.y[1],$PRE.getReal.pkgOut[1].dummy,getReal.pkgOut[1].dummy,$PRE.uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvbufOverwrites,$PRE.uDPReceive.nRecvBytes,uDPReceive.nRecvBytes,$PRE.uDPReceive.pkgOut.dummy,uDPReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,uDPSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001491/0.5518, allocations: 169.4 kB / 0.5452 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008792/0.5527, allocations: 486.7 kB / 0.5457 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/0.5527, allocations: 29.97 kB / 0.5457 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008699/0.5536, allocations: 224.9 kB / 0.5459 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.5536, allocations: 3.781 kB / 0.5459 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.5536, allocations: 3.953 kB / 0.5459 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5537, allocations: 3 kB / 0.5459 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.555, allocations: 0.9444 MB / 0.5469 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.555, allocations: 0 / 0.5469 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-05/0.5551, allocations: 14.86 kB / 0.5469 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.5551, allocations: 0 / 0.5469 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.035e-05/0.5551, allocations: 14.95 kB / 0.5469 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5551, allocations: 4 kB / 0.5469 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.5551, allocations: 4.031 kB / 0.5469 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.5561, allocations: 0.7047 MB / 0.5476 GB, free: 27.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.656e-05/0.5562, allocations: 106 kB / 0.5477 GB, free: 27.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.5563, allocations: 11.42 kB / 0.5477 GB, free: 27.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.5564, allocations: 5.562 kB / 0.5477 GB, free: 27.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.5565, allocations: 22.7 kB / 0.5477 GB, free: 27.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.943e-05/0.5565, allocations: 19.19 kB / 0.5477 GB, free: 27.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.5566, allocations: 128.1 kB / 0.5479 GB, free: 27.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5566, allocations: 0 / 0.5479 GB, free: 27.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007774/0.5574, allocations: 163 kB / 0.548 GB, free: 27.49 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: 37 (getFloat.pkgOut[1].trigger,$whenCondition1,uDPReceive.pkgOut.dummy,uDPReceive.nRecvBytes,uDPReceive.nRecvbufOverwrites,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * 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.002222/0.5597, allocations: 1.706 MB / 0.5497 GB, free: 26.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005649/0.5602, allocations: 332.4 kB / 0.55 GB, free: 26.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.5602, allocations: 0 / 0.55 GB, free: 26.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.5605, allocations: 148.7 kB / 0.5501 GB, free: 26.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005125/0.561, allocations: 60.62 kB / 0.5502 GB, free: 26.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.5636, allocations: 0.8038 MB / 0.551 GB, free: 26.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.5641, allocations: 0.8285 MB / 0.5518 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.5642, allocations: 47.22 kB / 0.5518 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.5644, allocations: 113.9 kB / 0.552 GB, free: 25.33 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5644, allocations: 4 kB / 0.552 GB, free: 25.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03237/0.5968, allocations: 7.39 MB / 0.5592 GB, free: 24.71 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/0.597, allocations: 225.7 kB / 0.5594 GB, free: 24.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.549, allocations: 1.547 kB / 0.5594 GB, free: 24.41 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPAutoBufferSize_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPAutoBufferSize.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.pipe 2>&1)