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.001198/0.001198, allocations: 96.59 kB / 15.73 MB, free: 440 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.001382/0.001382, allocations: 176.3 kB / 16.61 MB, free: 6.148 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.386/1.386, allocations: 223.2 MB / 240.6 MB, free: 5.465 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.2126/0.2126, allocations: 12.04 MB / 303.7 MB, free: 1.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.0003221, allocations: 12 kB / 367.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1173, allocations: 53.35 MB / 421 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.002394/0.1198, allocations: 2.034 MB / 423 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006647/0.1204, allocations: 390.8 kB / 423.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.678e-05/0.1205, allocations: 3.938 kB / 423.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.1207, allocations: 27.86 kB / 423.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.515e-05/0.1208, allocations: 19.91 kB / 423.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.121, allocations: 75.8 kB / 423.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.1212, allocations: 79.8 kB / 423.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.1213, allocations: 75.11 kB / 423.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.419e-05/0.1214, allocations: 35.86 kB / 423.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.1215, allocations: 59.69 kB / 423.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.1216, allocations: 8 kB / 423.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.86e-05/0.1217, allocations: 43.86 kB / 423.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.667e-05/0.1217, allocations: 35.89 kB / 423.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.468e-05/0.1218, allocations: 49.64 kB / 423.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.122, allocations: 171.8 kB / 424.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.122, allocations: 0 / 424.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.122, allocations: 0 / 424.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.122, allocations: 0 / 424.1 MB, free: 0.9023 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.0008472/0.1229, allocations: 0.5067 MB / 424.6 MB, free: 344 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1229, allocations: 12.03 kB / 424.6 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.635e-05/0.123, allocations: 54.44 kB / 424.7 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.943e-05/0.123, allocations: 15.81 kB / 424.7 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1899/0.3129, allocations: 216.1 kB / 424.9 MB, free: 39.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.817e-05/0.313, allocations: 12.91 kB / 424.9 MB, free: 39.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.313, allocations: 14.41 kB / 424.9 MB, free: 39.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.3134, allocations: 182.9 kB / 425.1 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3135, allocations: 0 / 425.1 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.3135, allocations: 6.016 kB / 425.1 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.3135, allocations: 7.156 kB / 425.1 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.3137, allocations: 96 kB / 425.2 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007096/0.3144, allocations: 0.5586 MB / 425.8 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.3147, allocations: 125 kB / 425.9 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.3147, allocations: 5.062 kB / 425.9 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.3149, allocations: 125.5 kB / 426 MB, free: 38.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.3149, allocations: 0 / 426 MB, free: 38.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004314/0.3153, allocations: 229.7 kB / 426.2 MB, free: 38.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.3154, allocations: 91.38 kB / 426.3 MB, free: 38.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.3155, allocations: 148.7 kB / 426.5 MB, free: 38.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.3155, allocations: 26.67 kB / 426.5 MB, free: 38.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.985e-05/0.3155, allocations: 124.1 kB / 426.6 MB, free: 38.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.3156, allocations: 39.61 kB / 426.7 MB, free: 38.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-06/0.3156, allocations: 2.938 kB / 426.7 MB, free: 38.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.019e-05/0.3157, allocations: 322.6 kB / 427 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.147e-05/0.3157, allocations: 39.34 kB / 427 MB, free: 37.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.405e-05/0.3158, allocations: 96.02 kB / 427.1 MB, free: 37.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.12e-05/0.3159, allocations: 47.44 kB / 427.2 MB, free: 37.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3159, allocations: 2.844 kB / 427.2 MB, free: 37.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000219/0.3162, allocations: 164.2 kB / 427.3 MB, free: 37.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.3162, allocations: 10.59 kB / 427.3 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3162, allocations: 4.703 kB / 427.3 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.3162, allocations: 3.562 kB / 427.3 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.416e-05/0.3163, allocations: 25.41 kB / 427.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.3163, allocations: 3.609 kB / 427.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.716e-05/0.3164, allocations: 9.75 kB / 427.4 MB, free: 37.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.3164, allocations: 10.14 kB / 427.4 MB, free: 37.82 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.000107/0.3165, allocations: 155.7 kB / 427.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.786e-05/0.3165, allocations: 10.58 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002251/0.3168, allocations: 150.8 kB / 427.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.3168, allocations: 4.516 kB / 427.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3168, allocations: 2.688 kB / 427.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3168, allocations: 3.938 kB / 427.7 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004214/0.3172, allocations: 496.4 kB / 428.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3172, allocations: 2.938 kB / 428.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.982e-05/0.3173, allocations: 13.91 kB / 428.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3173, allocations: 6.922 kB / 428.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.3173, allocations: 3.719 kB / 428.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3173, allocations: 3.281 kB / 428.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3173, allocations: 0 / 428.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.3176, allocations: 304.3 kB / 428.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.3177, allocations: 97.02 kB / 428.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.3177, allocations: 2.594 kB / 428.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.694e-05/0.3178, allocations: 0 / 428.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.672e-05/0.3178, allocations: 13.95 kB / 428.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.3178, allocations: 9.359 kB / 428.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.267e-05/0.3179, allocations: 97.66 kB / 428.7 MB, free: 37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3179, allocations: 5.859 kB / 428.7 MB, free: 37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.3182, allocations: 53.73 kB / 428.8 MB, free: 36.99 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.0007844/0.319, allocations: 1.031 MB / 429.8 MB, free: 36.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.3192, allocations: 117.2 kB / 429.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3192, allocations: 0 / 429.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.448e-05/0.3193, allocations: 61.56 kB / 430 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.3195, allocations: 16.17 kB / 430 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.3208, allocations: 1.908 MB / 431.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.321, allocations: 0.7304 MB / 432.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.744e-05/0.3211, allocations: 23.66 kB / 432.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.3211, allocations: 40.67 kB / 432.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3211, allocations: 0 / 432.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01439/0.3355, allocations: 3.255 MB / 436 MB, free: 33.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/0.3358, allocations: 276 kB / 436.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/1.997, allocations: 0 / 436.2 MB, free: 33.32 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)