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.001202/0.001202, allocations: 104.6 kB / 16.45 MB, free: 6.387 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.001231/0.001231, allocations: 182.9 kB / 17.38 MB, free: 5.676 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.29/1.29, 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.05583/0.05583, allocations: 12.05 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.08404, allocations: 52.31 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003588/0.08766, allocations: 2.383 MB / 474.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007312/0.08842, allocations: 434.5 kB / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.375e-05/0.08851, allocations: 0 / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.08875, allocations: 35.67 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.08889, allocations: 19.86 kB / 474.7 MB, free: 10.47 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.0003112/0.08921, allocations: 99.66 kB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002025/0.08942, allocations: 139.7 kB / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.08962, allocations: 90.98 kB / 475 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.049e-05/0.08972, allocations: 63.78 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.08988, allocations: 79.61 kB / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.08992, allocations: 16 kB / 475.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.09006, allocations: 75.89 kB / 475.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.048e-05/0.09014, allocations: 43.91 kB / 475.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.545e-05/0.09022, allocations: 83.53 kB / 475.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.09052, allocations: 227.3 kB / 475.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.09053, allocations: 0 / 475.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09054, allocations: 4 kB / 475.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.09055, allocations: 4 kB / 475.6 MB, free: 9.566 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.0007909/0.09135, allocations: 0.5426 MB / 476.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.09139, allocations: 15.97 kB / 476.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.251e-05/0.09144, allocations: 46.73 kB / 476.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/0.09149, allocations: 16.75 kB / 476.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.09167, allocations: 216.1 kB / 476.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.0917, allocations: 12.38 kB / 476.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.09174, allocations: 20.36 kB / 476.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.09204, allocations: 187.7 kB / 476.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.09206, allocations: 3.938 kB / 476.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.09209, allocations: 8 kB / 476.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.0921, allocations: 4 kB / 476.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.09228, allocations: 87.88 kB / 476.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006749/0.09296, allocations: 0.5589 MB / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.09325, allocations: 129 kB / 477.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-05/0.09335, allocations: 61.75 kB / 477.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.09339, allocations: 4 kB / 477.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.09359, allocations: 140.1 kB / 477.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.0936, allocations: 0 / 477.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004735/0.09408, allocations: 233.4 kB / 477.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.09414, allocations: 85.09 kB / 478 MB, free: 6.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.09427, allocations: 151.3 kB / 478.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.0943, allocations: 29.7 kB / 478.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.879e-05/0.09437, allocations: 120.4 kB / 478.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.26e-05/0.09442, allocations: 35.56 kB / 478.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.09449, allocations: 49.69 kB / 478.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.0946, allocations: 330.7 kB / 478.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.265e-05/0.09468, allocations: 31.98 kB / 478.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.09479, allocations: 94.8 kB / 478.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.09499, allocations: 146.7 kB / 478.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.095, allocations: 0 / 478.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002594/0.09526, allocations: 173.3 kB / 479.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.09528, allocations: 8 kB / 479.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.09529, allocations: 0 / 479.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.09531, allocations: 7.938 kB / 479.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.09542, allocations: 19.98 kB / 479.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.09543, allocations: 4 kB / 479.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.06e-05/0.0955, allocations: 11.94 kB / 479.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.09552, allocations: 4 kB / 479.2 MB, free: 5.699 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.0001181/0.09564, allocations: 151.6 kB / 479.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.09568, allocations: 19.8 kB / 479.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002524/0.09593, allocations: 150.7 kB / 479.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.09595, allocations: 0 / 479.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.09596, allocations: 4 kB / 479.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.09596, allocations: 0 / 479.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000509/0.09648, allocations: 0.4982 MB / 480 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.09649, allocations: 4 kB / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.514e-05/0.09653, allocations: 7.984 kB / 480 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.09654, allocations: 3.938 kB / 480 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.09657, allocations: 4 kB / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.09657, allocations: 256 / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.09658, allocations: 8 kB / 480 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.09692, allocations: 292.2 kB / 480.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.09696, allocations: 92.95 kB / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.09699, allocations: 0 / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.151e-05/0.09707, allocations: 7.984 kB / 480.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.256e-05/0.0971, allocations: 11.94 kB / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.09713, allocations: 7.984 kB / 480.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.74e-05/0.09719, allocations: 95.27 kB / 480.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.0972, allocations: 0 / 480.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.09751, allocations: 63.67 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.0009385/0.09846, allocations: 0.9483 MB / 481.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002564/0.09873, allocations: 127.8 kB / 481.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.09874, allocations: 0 / 481.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.09885, allocations: 63.91 kB / 481.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.09915, allocations: 22.92 kB / 481.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.1011, allocations: 1.826 MB / 483.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.1014, allocations: 0.7156 MB / 484.3 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.527e-05/0.1014, allocations: 32.8 kB / 484.3 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.1015, allocations: 35.42 kB / 484.3 MB, free: 284 kB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1015, allocations: 0 / 484.3 MB, free: 284 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.1197, allocations: 3.665 MB / 488 MB, free: 12.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.343/7.463, allocations: 18.09 kB / 488 MB, free: 12.79 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 & /home/hudson/saved_omc/OMSimulator/install/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)