Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.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.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 104.2 kB / 16.98 MB, free: 6.18 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.001723/0.001723, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.367/1.367, allocations: 222.9 MB / 241.6 MB, free: 15.23 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.0581/0.0581, allocations: 12.03 MB / 303.8 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 60.12 kB / 367.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2055, allocations: 52.33 MB / 419.5 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM): time 0.003684/0.2092, allocations: 2.918 MB / 422.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.2105, allocations: 0.8834 MB / 423.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.2107, allocations: 7.938 kB / 423.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.211, allocations: 90.69 kB / 423.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.2112, allocations: 67.45 kB / 423.4 MB, free: 17.14 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:30:7-39:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1272:7-1282:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.sendToLCM' contains a call to impure function 'Modelica_DeviceDrivers.Communication.LCM_.sendTo'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.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/Blocks/Communication.mo:1262:7-1270:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.readLCM' contains a call to impure function 'Modelica_DeviceDrivers.Communication.LCM_.read'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:74:7-84:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.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/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.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/Blocks/Packaging/SerialPackager.mo:41:7-50:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.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/Blocks/Packaging/SerialPackager.mo:86:7-96:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getRealFromFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getRealFromFloat'. Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.2118, allocations: 279.2 kB / 423.7 MB, free: 16.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003115/0.2121, allocations: 407.1 kB / 424.1 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002982/0.2124, allocations: 238.1 kB / 424.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.2125, allocations: 211.2 kB / 424.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.2128, allocations: 239 kB / 424.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.596e-05/0.2128, allocations: 44 kB / 424.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.2131, allocations: 195.8 kB / 425 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.2132, allocations: 143.6 kB / 425.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.2134, allocations: 230.7 kB / 425.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004915/0.2139, allocations: 0.6485 MB / 426 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2139, allocations: 0 / 426 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2139, allocations: 0 / 426 MB, free: 14.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.2139, allocations: 4 kB / 426 MB, free: 14.54 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 getInteger.pkgIn.pkg = getFloat.pkgOut[1].pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg lcmSend.pkgIn.pkg = addInteger.pkgOut[1].pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg lcmReceive.pkgOut.pkg = getReal.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: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001301/0.2152, allocations: 1.142 MB / 427.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2153, allocations: 8.031 kB / 427.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.291e-05/0.2154, allocations: 48.38 kB / 427.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.2156, allocations: 331.4 kB / 427.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.2157, allocations: 33.36 kB / 427.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.615e-05/0.2157, allocations: 44.36 kB / 427.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000614/0.2163, allocations: 480 kB / 428.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.2164, allocations: 192 / 428.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.824e-05/0.2164, allocations: 23.94 kB / 428.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.2164, allocations: 8 kB / 428.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003733/0.2168, allocations: 259.7 kB / 428.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.218, allocations: 1.386 MB / 429.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004332/0.2184, allocations: 294.3 kB / 430 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.2186, allocations: 163.3 kB / 430.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.2187, allocations: 7.984 kB / 430.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.219, allocations: 248.7 kB / 430.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.793e-06/0.219, allocations: 4 kB / 430.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008569/0.2198, allocations: 0.5788 MB / 431 MB, free: 9.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.2199, allocations: 148.5 kB / 431.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.2201, allocations: 264.7 kB / 431.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2202, allocations: 45.69 kB / 431.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.851e-05/0.2202, allocations: 208.2 kB / 431.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.2203, allocations: 106.7 kB / 431.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.2204, allocations: 118.2 kB / 431.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.122e-05/0.2205, allocations: 346.8 kB / 432.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.2207, allocations: 125 kB / 432.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.221, allocations: 314.4 kB / 432.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004367/0.2214, allocations: 492.4 kB / 433.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2214, allocations: 0 / 433.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006119/0.222, allocations: 476.8 kB / 433.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2221, allocations: 14.17 kB / 433.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.2221, allocations: 8 kB / 433.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.2221, allocations: 8 kB / 433.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.2223, allocations: 79.78 kB / 433.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.2223, allocations: 15.92 kB / 433.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/0.2225, allocations: 40.09 kB / 433.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.2226, allocations: 28.09 kB / 433.8 MB, free: 6.188 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 54 (addFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,lcmSend.dummy,$PRE.lcmSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addFloat.pkgOut[1].backwardTrigger,addFloat.pkgOut[1].trigger,$whenCondition2,addInteger.u[1],getFloat.dummy,$PRE.getFloat.dummy,getFloat.y[2],$PRE.getFloat.y[2],getFloat.y[1],$PRE.getFloat.y[1],getFloat.pkgOut[1].dummy,$PRE.getFloat.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],getReal.dummy,$PRE.getReal.dummy,getReal.y[3],$PRE.getReal.y[3],getReal.y[2],$PRE.getReal.y[2],getReal.y[1],$PRE.getReal.y[1],getReal.pkgOut[1].dummy,$PRE.getReal.pkgOut[1].dummy,lcmReceive.pkgOut.dummy,$PRE.lcmReceive.pkgOut.dummy,getFloat.pkgOut[1].trigger,$whenCondition1,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,lcmReceive.bufferSize,addFloat.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,lcmSend.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.0001945/0.2228, allocations: 238.9 kB / 434.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.2228, allocations: 31.72 kB / 434.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003271/0.2231, allocations: 239.4 kB / 434.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2232, allocations: 4 kB / 434.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2232, allocations: 4 kB / 434.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2232, allocations: 0 / 434.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009766/0.2242, allocations: 1.027 MB / 435.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.2242, allocations: 4 kB / 435.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.256e-05/0.2242, allocations: 11.98 kB / 435.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2242, allocations: 8 kB / 435.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.2243, allocations: 11.98 kB / 435.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.2243, allocations: 7.938 kB / 435.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2243, allocations: 3.938 kB / 435.4 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006921/0.225, allocations: 0.6449 MB / 436 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.225, allocations: 100.8 kB / 436.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.333e-05/0.2251, allocations: 19.98 kB / 436.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.2252, allocations: 11.94 kB / 436.2 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.2253, allocations: 19.97 kB / 436.2 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.2254, allocations: 15.98 kB / 436.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.2255, allocations: 160.4 kB / 436.4 MB, free: 3.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2255, allocations: 0 / 436.4 MB, free: 3.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005656/0.226, allocations: 155.5 kB / 436.5 MB, free: 3.375 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 35 (getFloat.pkgOut[1].trigger,$whenCondition1,lcmReceive.pkgOut.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addFloat.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,lcmSend.bufferSize,lcmSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007058/0.2268, allocations: 351.4 kB / 436.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005403/0.2273, allocations: 389.8 kB / 437.2 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2273, allocations: 0 / 437.2 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000215/0.2275, allocations: 167.8 kB / 437.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005885/0.2281, allocations: 93.02 kB / 437.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.2292, allocations: 0.7406 MB / 438.2 MB, free: 1.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.2295, allocations: 0.8037 MB / 439 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.846e-05/0.2295, allocations: 35.42 kB / 439.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of SimCode: time 9.81e-07/0.2295, allocations: 0 / 439.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of Templates: time 0.008384/0.2379, allocations: 6.168 MB / 445.2 MB, free: 10.68 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.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"." -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" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.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.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDLCM.h:35:22: error: no matching function for call to 'MDD_SerialPackagerSetDataWithErrorReturn' int rc = MDD_SerialPackagerSetDataWithErrorReturn(lcm->pkg, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:177:5: note: candidate function not viable: cannot convert argument of incomplete type 'void *const' to 'const char *' for 2nd argument int MDD_SerialPackagerSetDataWithErrorReturn(void* p_package, const char * data, int size) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:470: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.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:491: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.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:512: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) { ^ 5 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.o] Error 1