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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008279/0.0008278, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008574/0.0008575, allocations: 172.7 kB / 16.62 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 240.7 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1754/0.1754, allocations: 12.06 MB / 303.8 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003043, allocations: 11.98 kB / 367.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1084, allocations: 53.35 MB / 421.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003231/0.1117, allocations: 2.034 MB / 423.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006888/0.1124, allocations: 394.8 kB / 423.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.35e-05/0.1125, allocations: 4 kB / 423.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001897/0.1127, allocations: 31.8 kB / 423.6 MB, free: 1.473 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:13:51-13:58:writable] Warning: 'each' used when modifying non-array element dummy. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:13:65-13:75:writable] Warning: 'each' used when modifying non-array element dummy. Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.1128, allocations: 11.92 kB / 423.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.1131, allocations: 75.88 kB / 423.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.1132, allocations: 123.7 kB / 423.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.1134, allocations: 63.14 kB / 423.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.009e-05/0.1135, allocations: 51.77 kB / 423.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.1137, allocations: 55.7 kB / 424 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.1137, allocations: 8 kB / 424 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.1138, allocations: 51.97 kB / 424 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.878e-05/0.1139, allocations: 35.84 kB / 424 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.198e-05/0.1139, allocations: 49.64 kB / 424.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001943/0.1141, allocations: 171.8 kB / 424.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1141, allocations: 0 / 424.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1141, allocations: 0 / 424.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1141, allocations: 0 / 424.3 MB, free: 0.7734 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addReal.pkgOut[1].pkg = addReal.pkgIn.pkg addReal.pkgOut[1].pkg = uDPSend.pkgIn.pkg packager.pkgOut.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.0007364/0.1149, allocations: 0.5066 MB / 424.8 MB, free: 212 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1149, allocations: 12.03 kB / 424.8 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.197e-05/0.115, allocations: 46.55 kB / 424.8 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.115, allocations: 19.77 kB / 424.8 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2031/0.3181, allocations: 211.3 kB / 425.1 MB, free: 39.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.3182, allocations: 14.3 kB / 425.1 MB, free: 39.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.3182, allocations: 14 kB / 425.1 MB, free: 39.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.3186, allocations: 179.5 kB / 425.3 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3186, allocations: 0 / 425.3 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.3186, allocations: 8.25 kB / 425.3 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.3186, allocations: 7.734 kB / 425.3 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.3188, allocations: 90.31 kB / 425.4 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.3194, allocations: 0.5638 MB / 425.9 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.3197, allocations: 122.9 kB / 426 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.183e-05/0.3198, allocations: 64.58 kB / 426.1 MB, free: 38.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.3198, allocations: 4 kB / 426.1 MB, free: 38.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001598/0.32, allocations: 131.8 kB / 426.2 MB, free: 38.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.32, allocations: 0 / 426.2 MB, free: 38.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004563/0.3204, allocations: 237.7 kB / 426.5 MB, free: 38.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.3205, allocations: 83.7 kB / 426.6 MB, free: 38.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.3206, allocations: 145.1 kB / 426.7 MB, free: 38.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.3206, allocations: 31.08 kB / 426.7 MB, free: 38.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.895e-05/0.3207, allocations: 119.7 kB / 426.8 MB, free: 38.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/0.3207, allocations: 36.34 kB / 426.9 MB, free: 38.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.707e-06/0.3207, allocations: 2.672 kB / 426.9 MB, free: 38.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.968e-05/0.3208, allocations: 321.8 kB / 427.2 MB, free: 38.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.103e-05/0.3209, allocations: 39.72 kB / 427.2 MB, free: 38.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.913e-05/0.321, allocations: 89.25 kB / 427.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.744e-05/0.3211, allocations: 58.55 kB / 427.4 MB, free: 37.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3211, allocations: 0 / 427.4 MB, free: 37.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002339/0.3213, allocations: 170.7 kB / 427.5 MB, free: 37.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3213, allocations: 7.688 kB / 427.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3214, allocations: 3.938 kB / 427.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3214, allocations: 4.781 kB / 427.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.3215, allocations: 24.12 kB / 427.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.3215, allocations: 2.969 kB / 427.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.808e-05/0.3216, allocations: 17.12 kB / 427.6 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.3216, allocations: 5.906 kB / 427.6 MB, free: 37.92 MB / 350.1 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 () * Number of clocked 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 0.0001089/0.3217, allocations: 143.6 kB / 427.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.3217, allocations: 19.3 kB / 427.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002349/0.322, allocations: 156.1 kB / 427.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.322, allocations: 3.625 kB / 427.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.322, allocations: 0.6094 kB / 427.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.322, allocations: 3.281 kB / 427.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.3224, allocations: 0.4919 MB / 428.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3224, allocations: 4.344 kB / 428.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.997e-05/0.3225, allocations: 4.5 kB / 428.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3225, allocations: 3.031 kB / 428.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.3225, allocations: 8.5 kB / 428.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3225, allocations: 0.9375 kB / 428.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3225, allocations: 4.562 kB / 428.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002721/0.3228, allocations: 295.2 kB / 428.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.506e-05/0.3228, allocations: 90.7 kB / 428.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.3228, allocations: 3.375 kB / 428.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.653e-05/0.3229, allocations: 6.156 kB / 428.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.181e-05/0.3229, allocations: 6.328 kB / 428.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.323, allocations: 9.969 kB / 428.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4e-05/0.323, allocations: 99.05 kB / 428.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.02e-07/0.323, allocations: 0 / 428.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.3233, allocations: 62.31 kB / 429 MB, free: 37.1 MB / 350.1 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 () * Number of clocked 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.0007601/0.3241, allocations: 0.952 MB / 430 MB, free: 36.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000214/0.3243, allocations: 123.5 kB / 430.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3243, allocations: 0 / 430.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.046e-05/0.3244, allocations: 63.72 kB / 430.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.3247, allocations: 14.23 kB / 430.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.326, allocations: 0.8787 MB / 431 MB, free: 35.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.3261, allocations: 0.7213 MB / 431.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.063e-05/0.3262, allocations: 19.91 kB / 431.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.1e-05/0.3263, allocations: 43.48 kB / 431.8 MB, free: 35.19 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3263, allocations: 0 / 431.8 MB, free: 35.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01238/0.3387, allocations: 3.282 MB / 435.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.3389, allocations: 269.4 kB / 435.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/2.044, allocations: 3.219 kB / 435.4 MB, free: 34.56 MB / 350.1 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)