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.001114/0.001114, allocations: 105 kB / 16.45 MB, free: 6.391 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.001064/0.001064, allocations: 189 kB / 17.39 MB, free: 5.648 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.317/1.317, allocations: 222.9 MB / 241.1 MB, free: 15.07 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.0569/0.0569, allocations: 12.05 MB / 303.3 MB, free: 3.082 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 71.88 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08454/0.08573, allocations: 52.31 MB / 471.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003698/0.08946, allocations: 2.397 MB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007156/0.09019, allocations: 430.5 kB / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.701e-05/0.09027, allocations: 0 / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.09049, allocations: 27.73 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.09063, allocations: 19.8 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.0002962/0.09094, allocations: 103.7 kB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.09113, allocations: 139.7 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.09131, allocations: 87 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.619e-05/0.09139, allocations: 63.72 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.09152, allocations: 83.61 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.09156, allocations: 16 kB / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.09169, allocations: 75.95 kB / 475.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.03e-05/0.09175, allocations: 39.91 kB / 475.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.906e-05/0.09184, allocations: 91.45 kB / 475.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.09211, allocations: 223.3 kB / 475.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.09212, allocations: 3.938 kB / 475.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.09212, allocations: 0 / 475.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.09214, allocations: 4 kB / 475.6 MB, free: 9.574 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.0007874/0.09293, allocations: 0.5465 MB / 476.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.09298, allocations: 15.97 kB / 476.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.238e-05/0.09302, allocations: 46.73 kB / 476.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.686e-05/0.09308, allocations: 20.75 kB / 476.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.09327, allocations: 216.1 kB / 476.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.0933, allocations: 16.36 kB / 476.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.09334, allocations: 12.38 kB / 476.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.09368, allocations: 187.7 kB / 476.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.0937, allocations: 3.938 kB / 476.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.09372, allocations: 7.984 kB / 476.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.09373, allocations: 4 kB / 476.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.09393, allocations: 95.83 kB / 476.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000698/0.09463, allocations: 0.5511 MB / 477.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.09492, allocations: 129 kB / 477.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.09503, allocations: 61.81 kB / 477.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.09506, allocations: 0 / 477.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.09525, allocations: 133 kB / 477.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.715e-06/0.09526, allocations: 0 / 477.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004679/0.09574, allocations: 237.4 kB / 477.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.0958, allocations: 81.11 kB / 478 MB, free: 6.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.09593, allocations: 152.1 kB / 478.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.09595, allocations: 29.7 kB / 478.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.933e-05/0.09603, allocations: 116.4 kB / 478.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.09607, allocations: 39.55 kB / 478.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-05/0.09614, allocations: 49.64 kB / 478.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.09627, allocations: 330.7 kB / 478.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.5e-05/0.09635, allocations: 35.97 kB / 478.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.09648, allocations: 98.73 kB / 478.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.09668, allocations: 138.8 kB / 478.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.09669, allocations: 0 / 478.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002753/0.09697, allocations: 177.2 kB / 479.1 MB, free: 5.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.09699, allocations: 4 kB / 479.1 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.097, allocations: 4 kB / 479.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.09703, allocations: 4 kB / 479.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.806e-05/0.09713, allocations: 23.92 kB / 479.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.09715, allocations: 4 kB / 479.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.924e-05/0.09721, allocations: 11.94 kB / 479.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.09724, allocations: 7.984 kB / 479.2 MB, free: 5.703 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.0001534/0.09739, allocations: 151.6 kB / 479.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.09743, allocations: 15.81 kB / 479.3 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.09771, allocations: 150.3 kB / 479.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.09772, allocations: 0 / 479.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.09773, allocations: 0 / 479.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.09774, allocations: 7.984 kB / 479.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005538/0.0983, allocations: 0.4945 MB / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.09831, allocations: 0 / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.195e-05/0.09835, allocations: 12 kB / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.09836, allocations: 0 / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.09838, allocations: 4 kB / 480 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.09839, allocations: 0 / 480 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.09839, allocations: 4.062 kB / 480 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003528/0.09875, allocations: 296.1 kB / 480.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.09881, allocations: 89.14 kB / 480.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.09884, allocations: 4 kB / 480.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.307e-05/0.09892, allocations: 15.92 kB / 480.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.09896, allocations: 11.92 kB / 480.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.09899, allocations: 4 kB / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.829e-05/0.09905, allocations: 102.1 kB / 480.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09906, allocations: 0 / 480.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003167/0.09938, allocations: 55.73 kB / 480.6 MB, free: 4.195 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.0009656/0.1003, allocations: 0.9537 MB / 481.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002788/0.1006, allocations: 127.8 kB / 481.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1007, allocations: 0 / 481.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.1008, allocations: 63.91 kB / 481.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.1011, allocations: 19.92 kB / 481.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.103, allocations: 1.814 MB / 483.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.1033, allocations: 0.7235 MB / 484.3 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.33e-05/0.1034, allocations: 24.81 kB / 484.3 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.673e-05/0.1034, allocations: 47.36 kB / 484.3 MB, free: 288 kB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1034, allocations: 0 / 484.3 MB, free: 288 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01937/0.1228, allocations: 3.625 MB / 488 MB, free: 12.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.113/7.236, allocations: 18.08 kB / 488 MB, free: 12.84 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)