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.001563/0.001563, 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.002027/0.002027, 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.421/1.421, allocations: 222.9 MB / 241.6 MB, free: 15.17 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.05869/0.05869, allocations: 12.05 MB / 303.8 MB, free: 3.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 59.91 kB / 367.1 MB, free: 3.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2327, allocations: 52.33 MB / 419.5 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.003719/0.2365, allocations: 2.703 MB / 422.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.2375, allocations: 0.7123 MB / 422.9 MB, free: 17.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.752e-05/0.2376, allocations: 11.88 kB / 422.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.2379, allocations: 59.41 kB / 423 MB, free: 17.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000148/0.238, allocations: 47.59 kB / 423 MB, free: 17.55 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.0004583/0.2385, allocations: 207.4 kB / 423.2 MB, free: 17.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.2388, allocations: 303.2 kB / 423.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002536/0.239, allocations: 180.9 kB / 423.7 MB, free: 16.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.2391, allocations: 139.5 kB / 423.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.2393, allocations: 175.2 kB / 424 MB, free: 16.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.371e-05/0.2394, allocations: 32 kB / 424 MB, free: 16.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.2396, allocations: 143.9 kB / 424.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.373e-05/0.2397, allocations: 115.6 kB / 424.3 MB, free: 16.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.2398, allocations: 159.1 kB / 424.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.2402, allocations: 488.5 kB / 424.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2402, allocations: 0 / 424.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2402, allocations: 0 / 424.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2402, allocations: 4 kB / 424.9 MB, free: 15.64 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.001042/0.2412, allocations: 0.838 MB / 425.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2413, allocations: 11.97 kB / 425.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.311e-05/0.2414, allocations: 44.45 kB / 425.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.2416, allocations: 275.7 kB / 426.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.2416, allocations: 25.03 kB / 426.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.2417, allocations: 36.36 kB / 426.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.2421, allocations: 364.2 kB / 426.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2422, allocations: 192 / 426.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.2422, allocations: 19.94 kB / 426.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.2422, allocations: 8 kB / 426.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.2425, allocations: 200.5 kB / 426.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.2435, allocations: 1.181 MB / 427.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.2439, allocations: 246.5 kB / 428.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.2441, allocations: 127.3 kB / 428.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.2441, allocations: 4 kB / 428.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.2443, allocations: 211.6 kB / 428.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.814e-06/0.2443, allocations: 3.938 kB / 428.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007112/0.2451, allocations: 445.2 kB / 428.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.2451, allocations: 148.4 kB / 429 MB, free: 11.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.2453, allocations: 222.9 kB / 429.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2453, allocations: 41.7 kB / 429.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.047e-05/0.2454, allocations: 172.3 kB / 429.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.2455, allocations: 75.09 kB / 429.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.932e-05/0.2456, allocations: 98.09 kB / 429.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.996e-05/0.2456, allocations: 338.8 kB / 430 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.2458, allocations: 88.83 kB / 430.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.246, allocations: 247.1 kB / 430.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.2463, allocations: 362.9 kB / 430.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2463, allocations: 4 kB / 430.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004788/0.2468, allocations: 389.1 kB / 431 MB, free: 9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2468, allocations: 4 kB / 431 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.2468, allocations: 8 kB / 431 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.2469, allocations: 8.094 kB / 431.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.2471, allocations: 63.78 kB / 431.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.2471, allocations: 15.88 kB / 431.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.2472, allocations: 32.14 kB / 431.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.2472, 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.0001741/0.2474, allocations: 195.2 kB / 431.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.2475, allocations: 27.7 kB / 431.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002692/0.2477, allocations: 191 kB / 431.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.2478, allocations: 4 kB / 431.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2478, allocations: 7.938 kB / 431.6 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2478, allocations: 4 kB / 431.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007207/0.2485, allocations: 0.8214 MB / 432.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2485, allocations: 3.938 kB / 432.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.277e-05/0.2486, allocations: 19.92 kB / 432.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2486, allocations: 4 kB / 432.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.2486, allocations: 7.984 kB / 432.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2486, allocations: 0 / 432.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2486, allocations: 8 kB / 432.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004875/0.2491, allocations: 0.5409 MB / 433 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.2491, allocations: 104.7 kB / 433.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.2492, allocations: 7.984 kB / 433.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.2493, allocations: 8.125 kB / 433.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.2494, allocations: 23.97 kB / 433.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.2494, allocations: 11.98 kB / 433.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.669e-05/0.2495, allocations: 124.1 kB / 433.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2495, allocations: 0 / 433.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.2499, allocations: 115.8 kB / 433.4 MB, free: 6.523 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.0005801/0.2505, allocations: 311 kB / 433.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000434/0.251, allocations: 292.2 kB / 434 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.251, allocations: 1.188 kB / 434 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.2512, allocations: 127.9 kB / 434.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.2517, allocations: 56.48 kB / 434.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009001/0.2526, allocations: 0.5675 MB / 434.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001918/0.2528, allocations: 0.7791 MB / 435.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.281e-05/0.2528, allocations: 23.44 kB / 435.5 MB, free: 4.371 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2528, allocations: 4 kB / 435.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of Templates: time 0.005761/0.2586, allocations: 4.652 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