Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.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_UDPWithoutReceiveThread,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPWithoutReceiveThread",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPWithoutReceiveThread",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.00113/0.00113, 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.42/1.42, allocations: 221.5 MB / 230 MB, free: 7.52 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.0008511/0.000851, allocations: 96.78 kB / 280.9 MB, free: 5.254 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.05073/0.05073, allocations: 11.92 MB / 343.6 MB, free: 3.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.629e-05, allocations: 3.406 kB / 403.2 MB, free: 45.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1166, allocations: 53.36 MB / 456.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4551/0.5717, allocations: 85.57 MB / 0.5294 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.5721, allocations: 69.39 kB / 0.5295 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02779/0.5999, allocations: 9.575 MB / 0.5389 GB, free: 16.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6, allocations: 0 / 0.5389 GB, free: 16.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.655e-05/0.6, allocations: 14.12 kB / 0.5389 GB, free: 16.07 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.002006/0.602, allocations: 1.022 MB / 0.5399 GB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.6021, allocations: 11.62 kB / 0.5399 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.6023, allocations: 50.14 kB / 0.5399 GB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005519/0.6028, allocations: 338 kB / 0.5403 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.282e-05/0.6029, allocations: 22.91 kB / 0.5403 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.603, allocations: 26.09 kB / 0.5403 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004686/0.6034, allocations: 220.7 kB / 0.5405 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.6041, allocations: 439.4 kB / 0.5409 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.6042, allocations: 0 / 0.5409 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.6042, allocations: 15.09 kB / 0.5409 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.6042, allocations: 7.656 kB / 0.5409 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.6057, allocations: 1.343 MB / 0.5423 GB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004105/0.6061, allocations: 278.7 kB / 0.5425 GB, free: 14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001902/0.6063, allocations: 145.2 kB / 0.5427 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.6064, allocations: 7.812 kB / 0.5427 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.6067, allocations: 242 kB / 0.5429 GB, free: 13.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 3.106e-06/0.6067, allocations: 0 / 0.5429 GB, free: 13.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.001073/0.6078, allocations: 487.7 kB / 0.5434 GB, free: 13.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/0.6078, allocations: 184.7 kB / 0.5435 GB, free: 13.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.6081, allocations: 208.2 kB / 0.5437 GB, free: 13.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.6081, allocations: 43.52 kB / 0.5438 GB, free: 13.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.6083, allocations: 210.2 kB / 0.544 GB, free: 13.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.083e-05/0.6084, allocations: 97.91 kB / 0.5441 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.6084, allocations: 1.188 kB / 0.5441 GB, free: 13.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.362e-05/0.6085, allocations: 344 kB / 0.5444 GB, free: 12.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.6087, allocations: 104.7 kB / 0.5445 GB, free: 12.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.609, allocations: 322.7 kB / 0.5448 GB, free: 12.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004046/0.6094, allocations: 183 kB / 0.545 GB, free: 12.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.6094, allocations: 3.875 kB / 0.545 GB, free: 12.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007454/0.6101, allocations: 457 kB / 0.5454 GB, free: 12.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.6102, allocations: 7.531 kB / 0.5454 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.6102, allocations: 7.625 kB / 0.5454 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.6102, allocations: 11.38 kB / 0.5455 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.6105, allocations: 86.27 kB / 0.5455 GB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.6105, allocations: 17.89 kB / 0.5456 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.6107, allocations: 31.2 kB / 0.5456 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.6108, allocations: 29.27 kB / 0.5456 GB, free: 12.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 61 ($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.addFloat.pkgOut[1].dummy,addFloat.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,$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,addInteger.u[1],$whenCondition1,addInteger.pkgOut[1].trigger,trigger.y,$whenCondition2,$PRE.trigger.y,pre_trigger.y,uDPReceive.internalTrigger,uDPSend.internalTrigger,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 (69): * Single equations (assignments): 69 * 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.0006665/0.6114, allocations: 176.1 kB / 0.5458 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008812/0.6123, allocations: 489.6 kB / 0.5462 GB, free: 28.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.6124, allocations: 31.28 kB / 0.5463 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006797/0.6131, allocations: 376.1 kB / 0.5466 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.6131, allocations: 8.969 kB / 0.5466 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.6131, allocations: 5.359 kB / 0.5466 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.6131, allocations: 4.156 kB / 0.5467 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.6145, allocations: 0.8491 MB / 0.5475 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.6145, allocations: 1.688 kB / 0.5475 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.454e-05/0.6146, allocations: 12.86 kB / 0.5475 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.6146, allocations: 7.219 kB / 0.5475 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.6147, allocations: 24.5 kB / 0.5475 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.6147, allocations: 7.891 kB / 0.5475 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.6147, allocations: 2.031 kB / 0.5475 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009904/0.6157, allocations: 0.6553 MB / 0.5482 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.343e-05/0.6158, allocations: 101.1 kB / 0.5483 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.48e-05/0.6158, allocations: 11.69 kB / 0.5483 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.6159, allocations: 4.391 kB / 0.5483 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.616, allocations: 29.08 kB / 0.5483 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.586e-05/0.6161, allocations: 21.47 kB / 0.5483 GB, free: 27.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001081/0.6162, allocations: 134.6 kB / 0.5485 GB, free: 27.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6162, allocations: 0 / 0.5485 GB, free: 27.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006498/0.6168, allocations: 165.9 kB / 0.5486 GB, free: 27.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 (uDPSend.internalTrigger,uDPReceive.internalTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,pre_trigger.y,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],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,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,trigger.y,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (trigger.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 13 * 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.001849/0.6187, allocations: 1.722 MB / 0.5503 GB, free: 26.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004868/0.6192, allocations: 334.4 kB / 0.5506 GB, free: 26.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6192, allocations: 0 / 0.5506 GB, free: 26.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.6194, allocations: 158 kB / 0.5508 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.6198, allocations: 58.47 kB / 0.5508 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.6217, allocations: 0.7745 MB / 0.5516 GB, free: 25.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.6221, allocations: 0.8295 MB / 0.5524 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.6222, allocations: 49.22 kB / 0.5524 GB, free: 25.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.6223, allocations: 116.5 kB / 0.5526 GB, free: 25.25 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6223, allocations: 0 / 0.5526 GB, free: 25.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.6489, allocations: 7.443 MB / 0.5598 GB, free: 24.63 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.6491, allocations: 226.8 kB / 0.56 GB, free: 24.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.63, allocations: 3.906 kB / 0.56 GB, free: 24.34 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPWithoutReceiveThread_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.pipe 2>&1)