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.001015/0.001016, allocations: 103.1 kB / 16.45 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001113, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.07423/0.07423, allocations: 12.06 MB / 303.3 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 67.83 kB / 419.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1145, allocations: 52.31 MB / 471.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.004957/0.1195, allocations: 2.383 MB / 474.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008884/0.1204, allocations: 422.6 kB / 474.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.1205, allocations: 7.938 kB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000251/0.1208, allocations: 35.73 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.121, allocations: 35.66 kB / 474.7 MB, free: 10.48 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:30:7-39:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1183:7-1194:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.sendToUDP' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.sendTo'. Notification: Performance of NFTyping.typeClassSections: time 0.0003877/0.1214, allocations: 95.7 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.1216, allocations: 131.7 kB / 475 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.1218, allocations: 92.34 kB / 475.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.1219, allocations: 67.77 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.1221, allocations: 79.61 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.358e-05/0.1222, allocations: 16 kB / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.1223, allocations: 67.97 kB / 475.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.012e-05/0.1224, allocations: 43.91 kB / 475.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1225, allocations: 87.52 kB / 475.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003919/0.1229, allocations: 231.1 kB / 475.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1229, allocations: 0 / 475.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1229, allocations: 4 kB / 475.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1229, allocations: 0 / 475.6 MB, free: 9.582 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.0009475/0.1239, allocations: 0.5492 MB / 476.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.124, allocations: 12.03 kB / 476.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.909e-05/0.124, allocations: 50.67 kB / 476.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.362e-05/0.1241, allocations: 24.83 kB / 476.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.1243, allocations: 227.4 kB / 476.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1243, allocations: 12.38 kB / 476.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.1243, allocations: 16.38 kB / 476.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.1247, allocations: 179.7 kB / 476.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1247, allocations: 3.938 kB / 476.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.1247, allocations: 11.98 kB / 476.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1248, allocations: 4 kB / 476.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.1249, allocations: 91.83 kB / 476.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007143/0.1257, allocations: 0.5552 MB / 477.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.126, allocations: 121.1 kB / 477.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.582e-05/0.1261, allocations: 61.75 kB / 477.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.1261, allocations: 8 kB / 477.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001962/0.1263, allocations: 137 kB / 477.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1263, allocations: 0 / 477.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004959/0.1268, allocations: 241.3 kB / 477.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.1269, allocations: 81.11 kB / 478 MB, free: 6.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.127, allocations: 145.8 kB / 478.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.127, allocations: 29.7 kB / 478.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.83e-05/0.1271, allocations: 116.5 kB / 478.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.074e-05/0.1272, allocations: 43.69 kB / 478.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/0.1273, allocations: 45.64 kB / 478.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1274, allocations: 326.8 kB / 478.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.398e-05/0.1275, allocations: 35.97 kB / 478.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.1276, allocations: 98.83 kB / 478.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.1278, allocations: 138.7 kB / 479 MB, free: 5.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1278, allocations: 0 / 479 MB, free: 5.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002872/0.1281, allocations: 173.3 kB / 479.1 MB, free: 5.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.1281, allocations: 9.719 kB / 479.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1281, allocations: 0 / 479.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.1282, allocations: 4 kB / 479.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.918e-05/0.1283, allocations: 23.92 kB / 479.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1283, allocations: 8.188 kB / 479.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.529e-05/0.1284, allocations: 15.88 kB / 479.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.1284, allocations: 8 kB / 479.2 MB, free: 5.695 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 (uDPSend.dummy,$PRE.uDPSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addReal.pkgOut[1].backwardTrigger,addReal.pkgOut[1].trigger,$whenCondition1,uDPSend.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,uDPSend.bufferSize) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.1285, allocations: 147.5 kB / 479.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.042e-05/0.1286, allocations: 11.95 kB / 479.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002929/0.1289, allocations: 146.4 kB / 479.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.1289, allocations: 3.938 kB / 479.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.1289, allocations: 7.984 kB / 479.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1289, allocations: 4 kB / 479.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005847/0.1295, allocations: 0.5025 MB / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1295, allocations: 256 / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.701e-05/0.1296, allocations: 8 kB / 480 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1296, allocations: 4 kB / 480 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.1296, allocations: 3.984 kB / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1296, allocations: 0 / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1296, allocations: 4 kB / 480 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003943/0.13, allocations: 296.1 kB / 480.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.1301, allocations: 93.02 kB / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.1301, allocations: 3.984 kB / 480.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.019e-05/0.1302, allocations: 4 kB / 480.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.1302, allocations: 15.92 kB / 480.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.1303, allocations: 4 kB / 480.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.1304, allocations: 95.27 kB / 480.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.1304, allocations: 4 kB / 480.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.1307, allocations: 59.75 kB / 480.6 MB, free: 4.184 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/0.1317, allocations: 0.9473 MB / 481.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002859/0.132, allocations: 127.8 kB / 481.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1321, allocations: 0 / 481.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.1322, allocations: 67.94 kB / 481.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.1325, allocations: 22.92 kB / 481.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.1346, allocations: 1.824 MB / 483.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.135, allocations: 0.7311 MB / 484.3 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.426e-05/0.1351, allocations: 17.03 kB / 484.3 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.498e-05/0.1351, allocations: 43.41 kB / 484.4 MB, free: 276 kB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1351, allocations: 0 / 484.4 MB, free: 276 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01921/0.1544, allocations: 3.619 MB / 488 MB, free: 12.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.564/7.719, allocations: 11.69 kB / 488 MB, free: 12.83 MB / 366.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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)