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.001637/0.001637, allocations: 107.4 kB / 16.57 MB, free: 6.727 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.001858/0.001858, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.381/1.381, allocations: 222.9 MB / 241.2 MB, free: 15.44 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.05729/0.05729, allocations: 12.04 MB / 303.3 MB, free: 3.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 63.91 kB / 366.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.253, allocations: 52.32 MB / 418.7 MB, free: 21.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread): time 0.003465/0.2565, allocations: 2.289 MB / 421 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.2578, allocations: 0.9538 MB / 422 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.258, allocations: 15.88 kB / 422 MB, free: 18.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.2582, allocations: 62.97 kB / 422.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000168/0.2584, allocations: 31.78 kB / 422.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006004/0.259, allocations: 283.4 kB / 422.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.2593, allocations: 363.9 kB / 422.7 MB, free: 17.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.2596, allocations: 255 kB / 423 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.2597, allocations: 179.3 kB / 423.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.2599, allocations: 207 kB / 423.4 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.183e-05/0.26, allocations: 32 kB / 423.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.2602, allocations: 183.8 kB / 423.6 MB, free: 16.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.2603, allocations: 147.5 kB / 423.7 MB, free: 16.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2604, allocations: 206.7 kB / 423.9 MB, free: 16.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.2608, allocations: 483.1 kB / 424.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.2608, allocations: 0 / 424.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2608, allocations: 0 / 424.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2608, allocations: 4 kB / 424.4 MB, free: 15.69 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.001219/0.262, allocations: 1.102 MB / 425.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.2621, allocations: 8.031 kB / 425.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.259e-05/0.2622, allocations: 52.38 kB / 425.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.2625, allocations: 323.5 kB / 425.9 MB, free: 14.09 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 8.057e-05/0.2625, allocations: 96.95 kB / 426 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.2626, allocations: 44.31 kB / 426 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.264, allocations: 1.152 MB / 427.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.264, allocations: 0 / 427.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.2641, allocations: 20 kB / 427.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.235e-05/0.2641, allocations: 19.98 kB / 427.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.2645, allocations: 304 kB / 427.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009809/0.2655, allocations: 1.393 MB / 428.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008779/0.2664, allocations: 1.341 MB / 430.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.2669, allocations: 412.7 kB / 430.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.267, allocations: 39.97 kB / 430.7 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.2672, allocations: 170.1 kB / 430.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=78): time 2.695e-06/0.2672, allocations: 0 / 430.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=78): time 0.001234/0.2685, allocations: 0.817 MB / 431.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.2686, allocations: 326.1 kB / 432 MB, free: 7.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.2688, allocations: 220 kB / 432.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/0.2689, allocations: 41.7 kB / 432.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.093e-05/0.2689, allocations: 169.3 kB / 432.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.692e-05/0.269, allocations: 75.41 kB / 432.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.2691, allocations: 138.7 kB / 432.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.626e-05/0.2692, allocations: 350.8 kB / 432.9 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.2694, allocations: 117.9 kB / 433.1 MB, free: 6.328 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003166/0.2697, allocations: 0.5742 MB / 433.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005588/0.2703, allocations: 0.7758 MB / 434.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.2703, allocations: 4 kB / 434.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.0007989/0.2711, allocations: 0.6811 MB / 435.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.2711, allocations: 12 kB / 435.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.2711, allocations: 16 kB / 435.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.2712, allocations: 23.94 kB / 435.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.2715, allocations: 151.7 kB / 435.3 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.972e-05/0.2716, allocations: 31.86 kB / 435.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.2718, allocations: 59.53 kB / 435.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.2719, allocations: 47.98 kB / 435.4 MB, free: 3.496 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.0002408/0.2721, allocations: 258.9 kB / 435.7 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006165/0.2727, allocations: 497.9 kB / 436.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009874/0.2737, allocations: 0.6899 MB / 436.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.2738, allocations: 12 kB / 436.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.2738, allocations: 4 kB / 436.9 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.2738, allocations: 7.984 kB / 436.9 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005561/0.2744, allocations: 0.6383 MB / 437.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.2744, allocations: 4 kB / 437.5 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.2747, allocations: 103.8 kB / 437.6 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.2747, allocations: 4 kB / 437.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/0.2747, allocations: 27.98 kB / 437.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.2748, allocations: 4 kB / 437.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2748, allocations: 0 / 437.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008385/0.2756, allocations: 0.782 MB / 438.4 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/0.2757, allocations: 128.4 kB / 438.6 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.254e-05/0.2757, allocations: 24 kB / 438.6 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.2759, allocations: 16 kB / 438.6 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.276, allocations: 27.84 kB / 438.6 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.371e-05/0.276, allocations: 28 kB / 438.7 MB, free: 128 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.2761, allocations: 151.5 kB / 438.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2761, allocations: 0 / 438.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006761/0.2768, allocations: 155.8 kB / 439 MB, free: 15.82 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.0007001/0.2775, allocations: 382.8 kB / 439.3 MB, free: 15.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.2788, allocations: 1.241 MB / 440.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2788, allocations: 4 kB / 440.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.2793, allocations: 0.7708 MB / 441.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.2808, allocations: 1.195 MB / 442.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.2823, allocations: 1.153 MB / 443.7 MB, free: 11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.2827, allocations: 0.8795 MB / 444.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.176e-05/0.2828, allocations: 39.42 kB / 444.6 MB, free: 10.06 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2828, allocations: 0 / 444.6 MB, free: 10.06 MB / 318.1 MB Notification: Performance of Templates: time 0.009248/0.292, allocations: 6.824 MB / 451.4 MB, free: 3.27 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++14 -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:310: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:330: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:331: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:332: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:391: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