Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.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_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001696/0.001695, allocations: 105.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.001747/0.001747, 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.452/1.452, allocations: 222.9 MB / 241.6 MB, free: 15.15 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.06148/0.06148, allocations: 12.04 MB / 303.8 MB, free: 3.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.89 kB / 367.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.202, allocations: 52.32 MB / 419.5 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.00348/0.2056, allocations: 2.711 MB / 422.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.2066, allocations: 0.7122 MB / 422.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.066e-05/0.2067, allocations: 7.938 kB / 422.9 MB, free: 17.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.207, allocations: 67.39 kB / 423 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.2071, allocations: 43.59 kB / 423 MB, free: 17.54 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/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:1206:7-1215:28:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.writeSharedMemory' contains a call to impure function 'Modelica_DeviceDrivers.Communication.SharedMemory_.write'. [/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/Communication.mo:1196:7-1204:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.readSharedMemory' contains a call to impure function 'Modelica_DeviceDrivers.Communication.SharedMemory_.read'. Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.2076, allocations: 208.1 kB / 423.2 MB, free: 17.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002461/0.2078, allocations: 303.2 kB / 423.5 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.2081, allocations: 176.9 kB / 423.7 MB, free: 16.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.887e-05/0.2082, allocations: 143.5 kB / 423.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.2084, allocations: 175.2 kB / 424 MB, free: 16.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.278e-05/0.2084, allocations: 36 kB / 424 MB, free: 16.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.2086, allocations: 147.9 kB / 424.2 MB, free: 16.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.994e-05/0.2087, allocations: 103.7 kB / 424.3 MB, free: 16.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.2088, allocations: 163.1 kB / 424.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000359/0.2092, allocations: 488.5 kB / 424.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2092, allocations: 0 / 424.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2092, allocations: 0 / 424.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.2092, allocations: 3.938 kB / 424.9 MB, free: 15.63 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getReal.pkgOut[1].pkg = getInteger.pkgIn.pkg sharedMemoryRead.pkgOut.pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = sharedMemoryWrite.pkgIn.pkg addReal.pkgOut[1].pkg = addInteger.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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009846/0.2102, allocations: 0.8457 MB / 425.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.2102, allocations: 8.031 kB / 425.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.987e-05/0.2103, allocations: 44.45 kB / 425.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.2105, allocations: 287.7 kB / 426.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.2105, allocations: 21.03 kB / 426.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.2106, allocations: 32.36 kB / 426.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.211, allocations: 368.2 kB / 426.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.2111, allocations: 4.125 kB / 426.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.2111, allocations: 15.94 kB / 426.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.2111, allocations: 8 kB / 426.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002793/0.2114, allocations: 188.7 kB / 426.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009518/0.2124, allocations: 1.181 MB / 427.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.2127, allocations: 242.6 kB / 428.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.2129, allocations: 123.3 kB / 428.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.2129, allocations: 4 kB / 428.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.2132, allocations: 219.5 kB / 428.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.523e-06/0.2132, allocations: 0 / 428.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007014/0.2139, allocations: 445.1 kB / 428.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.214, allocations: 144.5 kB / 429 MB, free: 11.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.2141, allocations: 222.9 kB / 429.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.2141, allocations: 41.7 kB / 429.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.095e-05/0.2142, allocations: 172.3 kB / 429.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.88e-05/0.2143, allocations: 79.09 kB / 429.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.957e-05/0.2144, allocations: 94.09 kB / 429.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.866e-05/0.2144, allocations: 338.8 kB / 430 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.2146, allocations: 92.83 kB / 430.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.2148, allocations: 245.2 kB / 430.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003362/0.2151, allocations: 370.7 kB / 430.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2151, allocations: 3.938 kB / 430.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004853/0.2156, allocations: 385.2 kB / 431 MB, free: 8.996 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.2156, allocations: 8 kB / 431 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2157, allocations: 4 kB / 431.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.2157, allocations: 8 kB / 431.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.2159, allocations: 59.91 kB / 431.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.2159, allocations: 19.86 kB / 431.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.216, allocations: 28.42 kB / 431.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.216, allocations: 24 kB / 431.2 MB, free: 8.848 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 42 (sharedMemoryWrite.dummy,$PRE.sharedMemoryWrite.dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.pkgOut[1].trigger,$whenCondition2,addInteger.u[1],sharedMemoryRead.pkgOut.dummy,$PRE.sharedMemoryRead.pkgOut.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,getReal.pkgOut[1].trigger,$whenCondition1,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,sharedMemoryRead.bufferSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,sharedMemoryWrite.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.000151/0.2162, allocations: 202.9 kB / 431.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.2163, allocations: 27.7 kB / 431.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002735/0.2165, allocations: 183 kB / 431.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.2165, allocations: 4 kB / 431.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.2166, allocations: 11.94 kB / 431.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2166, allocations: 0 / 431.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000725/0.2173, allocations: 0.8253 MB / 432.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2173, allocations: 4 kB / 432.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.415e-05/0.2174, allocations: 19.92 kB / 432.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2174, allocations: 0 / 432.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.2174, allocations: 7.984 kB / 432.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.2174, allocations: 4 kB / 432.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2174, allocations: 4 kB / 432.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004896/0.2179, allocations: 0.5409 MB / 433 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.941e-05/0.2179, allocations: 104.7 kB / 433.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.218, allocations: 11.98 kB / 433.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.2181, allocations: 3.984 kB / 433.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.2182, allocations: 20.08 kB / 433.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.2182, allocations: 19.92 kB / 433.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.011e-05/0.2183, allocations: 124.1 kB / 433.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2183, allocations: 0 / 433.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004572/0.2187, allocations: 115.8 kB / 433.4 MB, free: 6.52 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: 28 (getReal.pkgOut[1].trigger,$whenCondition1,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0006641/0.2194, allocations: 306.5 kB / 433.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004296/0.2198, allocations: 297.3 kB / 434 MB, free: 5.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2199, allocations: 0 / 434 MB, free: 5.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.22, allocations: 132.1 kB / 434.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.2205, allocations: 51.95 kB / 434.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000839/0.2214, allocations: 0.5635 MB / 434.7 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001674/0.2216, allocations: 0.7752 MB / 435.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.2216, allocations: 31.42 kB / 435.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2216, allocations: 0 / 435.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of Templates: time 0.005653/0.2273, allocations: 4.656 MB / 440.2 MB, free: 15.73 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.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_SharedMemoryCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.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_SharedMemoryCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSharedMemory.h:215:23: error: assigning to 'caddr_t' (aka 'char *') from incompatible type 'void *' smb->shmptr = mmap(0, smb->shm_size, PROT_WRITE|PROT_READ, MAP_SHARED, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:405: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_SharedMemoryCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:426: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) { ^ 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.o] Error 1