Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.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.TestSerialPackager_UDPWithoutReceiveThread,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 104.1 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.001086/0.001086, allocations: 191.4 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.385/1.385, allocations: 222.9 MB / 241.6 MB, free: 15.18 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.05843/0.05843, allocations: 12.05 MB / 303.8 MB, free: 3.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 55.91 kB / 367.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2142, allocations: 52.32 MB / 419.5 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread): time 0.003612/0.2178, allocations: 2.276 MB / 421.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.2192, allocations: 0.9497 MB / 422.7 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.2194, allocations: 15.88 kB / 422.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.2196, allocations: 80.33 kB / 422.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.2199, allocations: 51.53 kB / 422.8 MB, free: 17.7 MB / 302.1 MB [/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: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/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: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/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: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'. [/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:43:9-52:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.addRealAsFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addRealAsFloat'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:88:9-98:29:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.getRealFromFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getRealFromFloat'. Notification: Performance of NFTyping.typeClassSections: time 0.0007526/0.2206, allocations: 326.1 kB / 423.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002883/0.2209, allocations: 387.8 kB / 423.5 MB, free: 17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003053/0.2212, allocations: 264.5 kB / 423.8 MB, free: 16.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.2214, allocations: 183.4 kB / 424 MB, free: 16.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.2216, allocations: 223 kB / 424.2 MB, free: 16.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.63e-05/0.2216, allocations: 44 kB / 424.2 MB, free: 16.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.2219, allocations: 195.8 kB / 424.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.222, allocations: 147.6 kB / 424.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.2221, allocations: 214.7 kB / 424.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004842/0.2226, allocations: 0.6232 MB / 425.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2226, allocations: 8 kB / 425.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2226, allocations: 0 / 425.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.2227, allocations: 0 / 425.4 MB, free: 15.12 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg uDPReceive.pkgOut.pkg = getReal.pkgIn.pkg addInteger.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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001212/0.2239, allocations: 1.094 MB / 426.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.2239, allocations: 8.031 kB / 426.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.224, allocations: 52.38 kB / 426.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.2243, allocations: 327.5 kB / 426.9 MB, free: 13.53 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: uDPReceive.initialized = previous(uDPReceive.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 9.072e-05/0.2244, allocations: 104.9 kB / 427 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.2245, allocations: 48.38 kB / 427 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.2258, allocations: 1.138 MB / 428.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.2259, allocations: 7.938 kB / 428.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.2259, allocations: 20 kB / 428.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.177e-05/0.2259, allocations: 15.98 kB / 428.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.2264, allocations: 304 kB / 428.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.2274, allocations: 1.389 MB / 429.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008738/0.2283, allocations: 1.348 MB / 431.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.2287, allocations: 414.6 kB / 431.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.2288, allocations: 43.91 kB / 431.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001703/0.229, allocations: 167.4 kB / 431.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of pre-optimization done (n=78): time 2.795e-06/0.229, allocations: 0 / 431.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=78): time 0.00116/0.2302, allocations: 0.8203 MB / 432.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.2303, allocations: 330.6 kB / 433 MB, free: 6.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.2305, allocations: 212.1 kB / 433.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.2305, allocations: 41.69 kB / 433.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/0.2306, allocations: 169.7 kB / 433.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.36e-05/0.2307, allocations: 79.41 kB / 433.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.2308, allocations: 134.7 kB / 433.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.287e-05/0.2308, allocations: 354.7 kB / 434 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.231, allocations: 121.9 kB / 434.1 MB, free: 5.758 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.2313, allocations: 0.5781 MB / 434.7 MB, free: 4.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005629/0.2319, allocations: 0.7758 MB / 435.4 MB, free: 3.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/0.2319, allocations: 4 kB / 435.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.0008027/0.2327, allocations: 0.6654 MB / 436.1 MB, free: 3.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.2328, allocations: 12 kB / 436.1 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.2328, allocations: 16 kB / 436.1 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/0.2328, allocations: 27.94 kB / 436.2 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.2332, allocations: 147.7 kB / 436.3 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/0.2332, allocations: 31.86 kB / 436.3 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.2335, allocations: 59.53 kB / 436.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.184e-05/0.2335, allocations: 48.33 kB / 436.4 MB, free: 2.938 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: trigger.y:DISCRETE(flow=false fixed = true ) "Value of Boolean output" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.trigger.y,$whenCondition2,pre_trigger.y,$whenCondition1,trigger.y,integerExpression.y,getFloat.pkgOut[1].autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,assignClock2.y,assignClock2.u,getInteger.y[1],getInteger.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,$CLKPRE.uDPReceive.initialized,uDPReceive.initialized,$CLKPRE.uDPReceive.bufferSize,uDPReceive.bufferSize,uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvBytes,uDPReceive.pkgOut.autoPkgBitSize,sample1.y,addInteger.u[1],uDPSend.bufferSize,getInteger.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,addFloat.pkgOut[1].autoPkgBitSize,addReal.pkgOut[1].autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,packager.initialized,packager.pkgOut.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 4 (uDPReceive.dummy,uDPReceive.initialized,uDPReceive.bufferSize,packager.dummy) * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002519/0.2338, allocations: 266.5 kB / 436.7 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006295/0.2344, allocations: 495.5 kB / 437.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000693/0.2351, allocations: 475.6 kB / 437.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-05/0.2351, allocations: 15.98 kB / 437.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2352, allocations: 0 / 437.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.2352, allocations: 7.984 kB / 437.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005641/0.2357, allocations: 0.6304 MB / 438.3 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/0.2358, allocations: 8.156 kB / 438.3 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.2361, allocations: 103.8 kB / 438.4 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/0.2361, allocations: 8 kB / 438.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/0.2362, allocations: 23.98 kB / 438.4 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.2362, allocations: 4 kB / 438.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2362, allocations: 4 kB / 438.5 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008375/0.237, allocations: 0.7781 MB / 439.2 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.705e-05/0.2371, allocations: 128.5 kB / 439.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.595e-05/0.2372, allocations: 23.98 kB / 439.4 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.2374, allocations: 20 kB / 439.4 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/0.2375, allocations: 19.92 kB / 439.4 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/0.2375, allocations: 35.92 kB / 439.5 MB, free: 15.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.2377, allocations: 151.4 kB / 439.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2377, allocations: 0 / 439.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007208/0.2384, allocations: 163.7 kB / 439.8 MB, free: 15.47 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 (uDPSend.bufferSize,addInteger.u[1],sample1.y,$cse6,$cse7,uDPReceive.pkgOut.autoPkgBitSize,uDPReceive.nRecvBytes,uDPReceive.nRecvbufOverwrites,uDPReceive.bufferSize,uDPReceive.initialized,getReal.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getInteger.y[1],assignClock2.u,assignClock2.y,getFloat.pkgIn.autoPkgBitSize,getFloat.pkgOut[1].autoPkgBitSize,$cse5,packager.pkgOut.autoPkgBitSize,packager.initialized,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgOut[1].autoPkgBitSize,integerExpression.y,pre_trigger.y,trigger.y,$whenCondition1,$whenCondition2) * Number of discrete states: 1 (trigger.y) * Number of clocked states: 4 (packager.dummy,uDPReceive.bufferSize,uDPReceive.initialized,uDPReceive.dummy) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 62 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * 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.000746/0.2392, allocations: 386.2 kB / 440.1 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.2407, allocations: 1.327 MB / 441.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2407, allocations: 0 / 441.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005161/0.2412, allocations: 0.7702 MB / 442.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.2428, allocations: 1.207 MB / 443.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.2444, allocations: 0.9651 MB / 444.4 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.2449, allocations: 0.8753 MB / 445.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.245, allocations: 47.42 kB / 445.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.245, allocations: 0 / 445.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of Templates: time 0.01028/0.2553, allocations: 6.841 MB / 452.2 MB, free: 2.992 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.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.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadFunctions.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.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadFunctions.cpp:524: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.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadFunctions.cpp:545: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) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadFunctions.cpp:566:3: error: no matching function for call to 'MDD_SerialPackagerAddDoubleAsFloat' MDD_SerialPackagerAddDoubleAsFloat(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:369:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDoubleAsFloat(void* p_package, double * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.cpp:29: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadInitialize.cpp:222:8: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' if((!_omcQ_24CLKPRE_P_packager_P_initialized_)) ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadInitialize.cpp:242:49: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_' _packager_P_backwardPropagatedBufferSize_ = _omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadInitialize.cpp:243:31: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_bufferSize_' _packager_P_bufferSize_ = _omcQ_24CLKPRE_P_packager_P_bufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadInitialize.cpp:244:32: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' _packager_P_initialized_ = _omcQ_24CLKPRE_P_packager_P_initialized_; ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.cpp:33: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.cpp:309:8: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' if((!_omcQ_24CLKPRE_P_packager_P_initialized_)) ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.cpp:329:49: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_' _packager_P_backwardPropagatedBufferSize_ = _omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.cpp:330:31: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_bufferSize_' _packager_P_bufferSize_ = _omcQ_24CLKPRE_P_packager_P_bufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.cpp:331:32: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' _packager_P_initialized_ = _omcQ_24CLKPRE_P_packager_P_initialized_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.cpp:390:8: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' if (!_omcQ_24CLKPRE_P_packager_P_initialized_) { ^ 13 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThreadCalcHelperMain.o] Error 1