Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP.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: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 104.5 kB / 16.98 MB, free: 6.137 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.001891/0.001891, allocations: 189.3 kB / 17.91 MB, free: 5.234 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.435/1.435, allocations: 222.9 MB / 241.6 MB, free: 15.16 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.06273/0.06273, allocations: 12.05 MB / 303.8 MB, free: 3.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 64.12 kB / 367.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2149, allocations: 52.33 MB / 419.5 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP): time 0.003947/0.2189, allocations: 3.073 MB / 422.5 MB, free: 18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.2204, allocations: 0.9923 MB / 423.5 MB, free: 17.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.2206, allocations: 11.94 kB / 423.5 MB, free: 17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002511/0.2208, allocations: 87.12 kB / 423.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.221, allocations: 55.47 kB / 423.7 MB, free: 16.86 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Communication.mo:292:7-303:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Communication.Internal.DummyFunctions.sendToUDP' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.sendTo'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:132:9-139:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:141:7-156:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitPack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitPack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Communication.mo:272:7-290:30:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Communication.Internal.DummyFunctions.readUDP_Conditional' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.read'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:158:7-173:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitUnpack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitUnpack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:65:9-74:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:109:9-119:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:32:9-41:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:76:9-86:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.getReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getReal'. Notification: Performance of NFTyping.typeClassSections: time 0.0007848/0.2218, allocations: 351.1 kB / 424 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.2222, allocations: 476 kB / 424.5 MB, free: 16.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.2225, allocations: 292.7 kB / 424.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.2227, allocations: 227.2 kB / 425 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.2229, allocations: 270.8 kB / 425.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.537e-05/0.223, allocations: 56 kB / 425.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.2233, allocations: 203.8 kB / 425.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.2234, allocations: 171.5 kB / 425.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.2235, allocations: 246.6 kB / 425.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005099/0.2241, allocations: 0.7225 MB / 426.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2241, allocations: 0 / 426.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2241, allocations: 0 / 426.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.2241, allocations: 0 / 426.6 MB, free: 13.88 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg addInteger1.pkgOut[1].pkg = addInteger1.pkgIn.pkg packInt1.pkgOut[1].pkg = packInt1.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg unpackInt1.pkgOut[1].pkg = getInteger1.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg getReal.pkgOut[1].pkg = unpackInt.pkgIn.pkg uDPReceive2_1.pkgOut.pkg = getReal.pkgIn.pkg addInteger1.pkgOut[1].pkg = uDPSend.pkgIn.pkg packInt1.pkgOut[1].pkg = addInteger1.pkgIn.pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg addReal.pkgOut[1].pkg = packInt.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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001609/0.2257, allocations: 1.267 MB / 427.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2258, allocations: 8.031 kB / 427.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.2259, allocations: 64.19 kB / 428 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.2262, allocations: 357.7 kB / 428.3 MB, free: 12.05 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: uDPReceive2_1.initialized = previous(uDPReceive2_1.initialized) to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: packager.initialized = previous(packager.initialized) to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.2263, allocations: 109.2 kB / 428.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.567e-05/0.2264, allocations: 48.38 kB / 428.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/0.2282, allocations: 1.623 MB / 430.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.2282, allocations: 3.938 kB / 430.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/0.2283, allocations: 20 kB / 430.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2283, allocations: 12 kB / 430.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004735/0.2288, allocations: 326.7 kB / 430.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007577/0.2296, allocations: 1.169 MB / 431.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.2306, allocations: 1.546 MB / 433.2 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005362/0.2312, allocations: 0.5058 MB / 433.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.2313, allocations: 52.7 kB / 433.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.2313, allocations: 47.16 kB / 433.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 2.655e-06/0.2313, allocations: 0 / 433.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=98): time 0.001381/0.2327, allocations: 0.9464 MB / 434.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.2329, allocations: 239.2 kB / 435 MB, free: 4.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.233, allocations: 224 kB / 435.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.2331, allocations: 41.7 kB / 435.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.2331, allocations: 149.7 kB / 435.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5e-05/0.2332, allocations: 80.12 kB / 435.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.2333, allocations: 162.6 kB / 435.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.2334, allocations: 354.8 kB / 436 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.2335, allocations: 121.9 kB / 436.1 MB, free: 3.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003663/0.2339, allocations: 0.7253 MB / 436.8 MB, free: 2.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005458/0.2345, allocations: 0.9293 MB / 437.7 MB, free: 1.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.2345, allocations: 8 kB / 437.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.0008261/0.2353, allocations: 0.79 MB / 438.5 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.2353, allocations: 18.19 kB / 438.5 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.2353, allocations: 20.84 kB / 438.6 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.972e-05/0.2354, allocations: 28 kB / 438.6 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.2358, allocations: 195.6 kB / 438.8 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-05/0.2358, allocations: 43.8 kB / 438.8 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.2361, allocations: 87.25 kB / 438.9 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.2362, allocations: 56 kB / 439 MB, free: 356 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 59 (integerExpression.y,integerExpression1.y,assignClock4.y,assignClock4.u,assignClock3.y,assignClock3.u,assignClock2.y,assignClock2.u,sample4.y,sample3.y,sample1.y,getReal.pkgOut[1].autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,addReal.pkgOut[1].autoPkgBitSize,addReal.pkgOut[1].userPkgBitSize,addReal.pkgIn.autoPkgBitSize,addReal.pkgIn.userPkgBitSize,getInteger1.y[1],getInteger1.pkgIn.autoPkgBitSize,unpackInt1.y,unpackInt1.pkgOut[1].autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,addInteger1.u[1],addInteger1.pkgOut[1].autoPkgBitSize,addInteger1.pkgOut[1].userPkgBitSize,addInteger1.pkgIn.autoPkgBitSize,addInteger1.pkgIn.userPkgBitSize,packInt1.u,packInt1.pkgOut[1].autoPkgBitSize,packInt1.pkgOut[1].userPkgBitSize,packInt1.pkgIn.autoPkgBitSize,packInt1.pkgIn.userPkgBitSize,unpackInt.y,unpackInt.pkgOut[1].autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,$CLKPRE.uDPReceive2_1.initialized,uDPReceive2_1.initialized,$CLKPRE.uDPReceive2_1.bufferSize,uDPReceive2_1.bufferSize,uDPReceive2_1.nRecvbufOverwrites,uDPReceive2_1.nRecvBytes,uDPReceive2_1.pkgOut.autoPkgBitSize,packInt.u,packInt.pkgOut[1].autoPkgBitSize,packInt.pkgOut[1].userPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt.pkgIn.userPkgBitSize,$CLKPRE.packager.bufferSize,packager.bufferSize,$CLKPRE.packager.backwardPropagatedBufferSize,packager.backwardPropagatedBufferSize,$CLKPRE.packager.initialized,packager.initialized,packager.pkgOut.autoPkgBitSize,packager.pkgOut.userPkgBitSize,uDPSend.bufferSize,uDPSend.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,getInteger1.pkgIn.userPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 7 (uDPReceive2_1.dummy,uDPReceive2_1.initialized,uDPReceive2_1.bufferSize,packager.bufferSize,packager.backwardPropagatedBufferSize,packager.dummy,packager.initialized) * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 106 * 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.0002181/0.2364, allocations: 281.3 kB / 439.2 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/0.2376, allocations: 0.6589 MB / 439.9 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.239, allocations: 0.7686 MB / 440.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.239, allocations: 12 kB / 440.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.239, allocations: 4 kB / 440.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.2391, allocations: 3.984 kB / 440.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007316/0.2398, allocations: 468.6 kB / 441.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/0.2398, allocations: 8 kB / 441.2 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000489/0.2403, allocations: 143.8 kB / 441.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.2403, allocations: 8.094 kB / 441.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.014e-05/0.2404, allocations: 27.92 kB / 441.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.2404, allocations: 4 kB / 441.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.2404, allocations: 4 kB / 441.3 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.2419, allocations: 1.142 MB / 442.5 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.242, allocations: 128.4 kB / 442.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.311e-05/0.2421, allocations: 24 kB / 442.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.2424, allocations: 16 kB / 442.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.2424, allocations: 11.98 kB / 442.7 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.323e-05/0.2425, allocations: 31.98 kB / 442.7 MB, free: 12.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.2426, allocations: 147.5 kB / 442.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2426, allocations: 7.938 kB / 442.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009002/0.2435, allocations: 163.7 kB / 443 MB, free: 12.2 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 56 (integerExpression.y,integerExpression1.y,$cse3,$cse4,$cse5,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,uDPSend.bufferSize,packager.pkgOut.userPkgBitSize,packager.pkgOut.autoPkgBitSize,packager.initialized,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.userPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt.pkgOut[1].userPkgBitSize,packInt.pkgOut[1].autoPkgBitSize,packInt.u,uDPReceive2_1.pkgOut.autoPkgBitSize,uDPReceive2_1.nRecvBytes,uDPReceive2_1.nRecvbufOverwrites,uDPReceive2_1.bufferSize,uDPReceive2_1.initialized,unpackInt.pkgIn.autoPkgBitSize,unpackInt.pkgOut[1].autoPkgBitSize,unpackInt.y,packInt1.pkgIn.userPkgBitSize,packInt1.pkgIn.autoPkgBitSize,packInt1.pkgOut[1].userPkgBitSize,packInt1.pkgOut[1].autoPkgBitSize,packInt1.u,addInteger1.pkgIn.userPkgBitSize,addInteger1.pkgIn.autoPkgBitSize,addInteger1.pkgOut[1].userPkgBitSize,addInteger1.pkgOut[1].autoPkgBitSize,addInteger1.u[1],unpackInt1.pkgIn.autoPkgBitSize,unpackInt1.pkgOut[1].autoPkgBitSize,unpackInt1.y,getInteger1.pkgIn.autoPkgBitSize,getInteger1.y[1],addReal.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,addReal.pkgOut[1].userPkgBitSize,addReal.pkgOut[1].autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,sample1.y,sample3.y,sample4.y,assignClock2.u,assignClock2.y,assignClock3.u,assignClock3.y,assignClock4.u,assignClock4.y) * Number of discrete states: 0 () * Number of clocked states: 7 (packager.initialized,packager.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,uDPReceive2_1.bufferSize,uDPReceive2_1.initialized,uDPReceive2_1.dummy) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 2 * 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.0009421/0.2445, allocations: 400.4 kB / 443.4 MB, free: 11.87 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00177/0.2463, allocations: 0.8357 MB / 444.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2463, allocations: 4.062 kB / 444.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.664e-05/0.2463, allocations: 19.94 kB / 444.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002709/0.2491, allocations: 2.064 MB / 446.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.251, allocations: 1.051 MB / 447.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005973/0.2516, allocations: 0.8995 MB / 448.3 MB, free: 6.852 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.214e-05/0.2517, allocations: 47.42 kB / 448.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2517, allocations: 0 / 448.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of Templates: time 0.01172/0.2634, allocations: 7.18 MB / 455.5 MB, free: 15.65 MB / 334.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDP.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:452:5: error: no matching function for call to 'strncpy' strncpy(pkg->data + pkg->pos, u, (size_t)bufferSize); ^~~~~~~ /usr/include/string.h:144:14: note: candidate function not viable: no known conversion from 'unsigned char *' to 'char *__restrict' for 1st argument extern char *strncpy (char *__restrict __dest, ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPFunctions.cpp:522:3: error: no matching function for call to 'MDD_SerialPackagerAddInteger' MDD_SerialPackagerAddInteger(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:243:16: note: candidate function not viable: 2nd argument ('const int *') would lose const qualifier DllExport void MDD_SerialPackagerAddInteger(void* p_package, int * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPFunctions.cpp:543:3: error: no matching function for call to 'MDD_SerialPackagerAddDouble' MDD_SerialPackagerAddDouble(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:307:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDouble(void* p_package, double * u, size_t n, int endian) { ^ 3 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerBitPack_UDPCalcHelperMain.o] Error 1