Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.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_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 104.1 kB / 16.98 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001467, 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.386/1.386, allocations: 222.9 MB / 241.6 MB, free: 15.19 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.05717/0.05717, allocations: 12.05 MB / 303.8 MB, free: 3.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 63.89 kB / 367.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2429, allocations: 52.32 MB / 419.5 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger): time 0.004383/0.2474, allocations: 2.794 MB / 422.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.249, allocations: 0.7589 MB / 423 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002796/0.2493, allocations: 9.344 kB / 423 MB, free: 17.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003427/0.2496, allocations: 59.41 kB / 423.1 MB, free: 17.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002388/0.2499, allocations: 59.17 kB / 423.1 MB, free: 17.4 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.000674/0.2506, allocations: 219.4 kB / 423.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003439/0.2509, allocations: 327.1 kB / 423.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002909/0.2512, allocations: 186.2 kB / 423.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.2514, allocations: 155.5 kB / 424 MB, free: 16.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.2517, allocations: 183.2 kB / 424.2 MB, free: 16.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-05/0.2518, allocations: 36 kB / 424.2 MB, free: 16.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002401/0.252, allocations: 151.8 kB / 424.4 MB, free: 16.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.2521, allocations: 111.7 kB / 424.5 MB, free: 16.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.2522, allocations: 171.1 kB / 424.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004909/0.2527, allocations: 0.5043 MB / 425.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2528, allocations: 0 / 425.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2528, allocations: 0 / 425.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.2528, allocations: 0 / 425.2 MB, free: 15.38 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001307/0.2541, allocations: 0.8625 MB / 426 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2541, allocations: 12.03 kB / 426 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.2543, allocations: 40.45 kB / 426.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002616/0.2545, allocations: 295.6 kB / 426.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.2546, allocations: 25.02 kB / 426.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.074e-05/0.2546, allocations: 32.38 kB / 426.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005611/0.2552, allocations: 403.7 kB / 426.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.2552, allocations: 192 / 426.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.825e-05/0.2553, allocations: 15.94 kB / 426.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2553, allocations: 11.94 kB / 426.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.2556, allocations: 217.6 kB / 427 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.2569, allocations: 1.307 MB / 428.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.2573, allocations: 285.1 kB / 428.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.2575, allocations: 136.2 kB / 428.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.658e-05/0.2575, allocations: 11.98 kB / 428.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.2578, allocations: 232.5 kB / 429 MB, free: 11.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.784e-06/0.2578, allocations: 0 / 429 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=34): time 0.000783/0.2586, allocations: 484.5 kB / 429.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.2587, allocations: 178.1 kB / 429.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.2588, allocations: 231.4 kB / 429.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.2589, allocations: 41.7 kB / 429.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.627e-05/0.259, allocations: 180.5 kB / 430.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/0.259, allocations: 86.92 kB / 430.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.2592, allocations: 114.5 kB / 430.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.881e-05/0.2592, allocations: 338.8 kB / 430.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.2594, allocations: 105.1 kB / 430.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.2597, allocations: 274.1 kB / 431 MB, free: 9.094 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.2601, allocations: 400.2 kB / 431.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.2601, allocations: 0 / 431.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000588/0.2607, allocations: 424.8 kB / 431.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2607, allocations: 10.03 kB / 431.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.2607, allocations: 7.938 kB / 431.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.2607, allocations: 11.94 kB / 431.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.261, allocations: 59.91 kB / 431.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.261, allocations: 11.94 kB / 431.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.2611, allocations: 40.3 kB / 431.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.2612, allocations: 27.94 kB / 432 MB, free: 8.043 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 50 (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,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.u[1],sharedMemoryRead.internalTrigger,sharedMemoryWrite.internalTrigger,enable.y,zeroCrossing1.enable,$PRE.zeroCrossing1.enable,zeroCrossing1.disable,$PRE.zeroCrossing1.disable,zeroCrossing1.u_pos,$PRE.zeroCrossing1.u_pos,getReal.pkgOut[1].trigger,addInteger.pkgOut[1].trigger,$whenCondition1,$whenCondition2,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 (58): * Single equations (assignments): 58 * 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.0001773/0.2614, allocations: 207.4 kB / 432.2 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.029e-05/0.2614, allocations: 39.64 kB / 432.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004143/0.2618, allocations: 295.2 kB / 432.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2618, allocations: 8 kB / 432.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.2619, allocations: 4 kB / 432.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2619, allocations: 0 / 432.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007779/0.2627, allocations: 0.777 MB / 433.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.2627, allocations: 0 / 433.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.296e-05/0.2627, allocations: 15.94 kB / 433.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.2627, allocations: 4 kB / 433.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.2628, allocations: 7.984 kB / 433.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2628, allocations: 8 kB / 433.3 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2628, allocations: 0 / 433.3 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005349/0.2633, allocations: 0.4936 MB / 433.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-05/0.2634, allocations: 96.86 kB / 433.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.2634, allocations: 15.98 kB / 433.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.2635, allocations: 11.98 kB / 433.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.2636, allocations: 11.98 kB / 433.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-05/0.2636, allocations: 19.98 kB / 434 MB, free: 5.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.654e-05/0.2637, allocations: 127.2 kB / 434.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2637, allocations: 0 / 434.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005053/0.2642, allocations: 127.7 kB / 434.2 MB, free: 5.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 30 (sharedMemoryWrite.internalTrigger,sharedMemoryRead.internalTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,getReal.pkgOut[1].trigger,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,zeroCrossing1.u_pos,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (zeroCrossing1.u_pos) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 12 * 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.0006667/0.2649, allocations: 319.8 kB / 434.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005468/0.2655, allocations: 336.5 kB / 434.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.2655, allocations: 4.188 kB / 434.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.2657, allocations: 131.9 kB / 435 MB, free: 4.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004603/0.2662, allocations: 50.8 kB / 435 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008922/0.2671, allocations: 0.5799 MB / 435.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001982/0.2673, allocations: 0.7759 MB / 436.4 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.74e-05/0.2674, allocations: 27.44 kB / 436.4 MB, free: 3.453 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2674, allocations: 4 kB / 436.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of Templates: time 0.00855/0.2759, allocations: 4.928 MB / 441.4 MB, free: 14.56 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.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_SharedMemoryExternalTriggerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.cpp:17: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.h:170:13: warning: '_realExpression1_P_y_' macro redefined [-Wmacro-redefined] #define _realExpression1_P_y_ _pointerToRealVars[3] ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.h:167:13: note: previous definition is here #define _realExpression1_P_y_ _pointerToRealVars[0] ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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) { ^ 1 warning and 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.o] Error 1