Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.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.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest",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.001728/0.001728, allocations: 177.2 kB / 8.048 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.725/1.725, allocations: 221.5 MB / 230 MB, free: 7.562 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.0008637/0.0008634, allocations: 92.41 kB / 280.9 MB, free: 5.305 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.04857/0.04857, allocations: 11.91 MB / 343.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.153e-05, allocations: 2.188 kB / 403.2 MB, free: 45.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1414, allocations: 53.37 MB / 456.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3874/0.5289, allocations: 81.39 MB / 0.5254 GB, free: 16.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.5292, allocations: 67.25 kB / 0.5254 GB, free: 16.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01072/0.5399, allocations: 3.692 MB / 0.529 GB, free: 16.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5399, allocations: 9.125 kB / 0.529 GB, free: 16.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.54, allocations: 3.375 kB / 0.529 GB, free: 16.47 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addReal.pkgOut[1].pkg = uDPSend.pkgIn.pkg addReal.pkgIn.pkg = packager.pkgOut.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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0008206/0.5408, allocations: 0.5071 MB / 0.5295 GB, free: 16.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.5408, allocations: 10.56 kB / 0.5296 GB, free: 16.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.869e-05/0.5409, allocations: 21.17 kB / 0.5296 GB, free: 16.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.5412, allocations: 210.9 kB / 0.5298 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.5412, allocations: 10.36 kB / 0.5298 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.5413, allocations: 14.94 kB / 0.5298 GB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002114/0.5415, allocations: 79.11 kB / 0.5299 GB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.5418, allocations: 167.1 kB / 0.53 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.5419, allocations: 0 / 0.53 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.5419, allocations: 2.578 kB / 0.53 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.5419, allocations: 4.344 kB / 0.53 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007923/0.5427, allocations: 0.5159 MB / 0.5305 GB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.543, allocations: 112.6 kB / 0.5306 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.147e-05/0.5431, allocations: 62.03 kB / 0.5307 GB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.5431, allocations: 1.375 kB / 0.5307 GB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001588/0.5433, allocations: 115.6 kB / 0.5308 GB, free: 15.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.5433, allocations: 0 / 0.5308 GB, free: 15.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004596/0.5438, allocations: 182.5 kB / 0.531 GB, free: 15.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.5438, allocations: 80.45 kB / 0.5311 GB, free: 15.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.5439, allocations: 144.6 kB / 0.5312 GB, free: 15.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.5439, allocations: 26.95 kB / 0.5312 GB, free: 14.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.38e-05/0.544, allocations: 121.2 kB / 0.5313 GB, free: 14.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.544, allocations: 35.02 kB / 0.5314 GB, free: 14.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-06/0.5441, allocations: 3.938 kB / 0.5314 GB, free: 14.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.785e-05/0.5441, allocations: 322.1 kB / 0.5317 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.183e-05/0.5442, allocations: 31.28 kB / 0.5317 GB, free: 14.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.069e-05/0.5443, allocations: 97.92 kB / 0.5318 GB, free: 14.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.5444, allocations: 42.59 kB / 0.5319 GB, free: 14.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5444, allocations: 0 / 0.5319 GB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002714/0.5447, allocations: 154.2 kB / 0.532 GB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.5447, allocations: 5.906 kB / 0.532 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.5447, allocations: 3.297 kB / 0.532 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.5448, allocations: 2.938 kB / 0.532 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.5449, allocations: 22.62 kB / 0.532 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.5449, allocations: 1.5 kB / 0.532 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.457e-05/0.545, allocations: 6.719 kB / 0.532 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.545, allocations: 9.266 kB / 0.5321 GB, free: 14.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.uDPSend.dummy,uDPSend.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition1,addReal.pkgOut[1].trigger,addReal.pkgOut[1].backwardTrigger,uDPSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 8.023e-05/0.5451, allocations: 134 kB / 0.5322 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003663/0.5454, allocations: 182.3 kB / 0.5324 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.269e-05/0.5455, allocations: 12.69 kB / 0.5324 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002815/0.5458, allocations: 151.3 kB / 0.5325 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.5458, allocations: 1.625 kB / 0.5325 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5458, allocations: 1.438 kB / 0.5325 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.5458, allocations: 1.781 kB / 0.5325 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004789/0.5463, allocations: 453 kB / 0.5329 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.5463, allocations: 3.109 kB / 0.533 GB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.614e-05/0.5463, allocations: 9 kB / 0.533 GB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.5464, allocations: 1.531 kB / 0.533 GB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.5464, allocations: 8.266 kB / 0.533 GB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.5464, allocations: 1.531 kB / 0.533 GB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5464, allocations: 3.938 kB / 0.533 GB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003784/0.5468, allocations: 296.1 kB / 0.5333 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.106e-05/0.5468, allocations: 92.08 kB / 0.5333 GB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.5469, allocations: 3.203 kB / 0.5333 GB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.5469, allocations: 1.188 kB / 0.5333 GB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.974e-05/0.547, allocations: 12.45 kB / 0.5334 GB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/0.547, allocations: 9.797 kB / 0.5334 GB, free: 13.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005366/0.5476, allocations: 96.17 kB / 0.5335 GB, free: 29.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5476, allocations: 1.125 kB / 0.5335 GB, free: 29.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003693/0.5479, allocations: 61.92 kB / 0.5335 GB, free: 29.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 (addReal.pkgOut[1].trigger,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addReal.pkgOut[1].backwardTrigger,uDPSend.bufferSize,uDPSend.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001137/0.5491, allocations: 1.037 MB / 0.5345 GB, free: 28.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000221/0.5493, allocations: 108.2 kB / 0.5346 GB, free: 28.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5493, allocations: 384 / 0.5346 GB, free: 28.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.721e-05/0.5494, allocations: 61.91 kB / 0.5347 GB, free: 28.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.5497, allocations: 19.09 kB / 0.5347 GB, free: 28.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.5509, allocations: 448.4 kB / 0.5351 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.5512, allocations: 0.726 MB / 0.5359 GB, free: 27.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.069e-05/0.5513, allocations: 17.59 kB / 0.5359 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.753e-05/0.5514, allocations: 38.03 kB / 0.5359 GB, free: 27.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5514, allocations: 0 / 0.5359 GB, free: 27.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.5768, allocations: 2.912 MB / 0.5387 GB, free: 27.57 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/0.5771, allocations: 219.5 kB / 0.539 GB, free: 27.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/2.368, allocations: 0 / 0.539 GB, free: 27.29 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)