Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SoftingCAN.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SoftingCAN,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SoftingCAN,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003732/0.003732, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.48/2.48, allocations: 221.4 MB / 235.1 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 87.16 kB / 286.1 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05777/0.05777, allocations: 11.91 MB / 348.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.287e-05/5.29e-05, allocations: 8 kB / 410.2 MB, free: 58.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1543, allocations: 53.35 MB / 463.6 MB, free: 4.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5993/0.7536, allocations: 86.62 MB / 0.5373 GB, free: 12.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/0.754, allocations: 75.62 kB / 0.5374 GB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05166/0.8057, allocations: 14.05 MB / 0.5511 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.035e-06/0.8058, allocations: 0 / 0.5511 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.371e-05/0.8058, allocations: 27.94 kB / 0.5511 GB, free: 0.8438 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: rxMessage.softingCANBus.softingCAN = softingCANConfig.softingCANBus[2].softingCAN softingCANConfig.softingCANBus[1].softingCAN = txMessage.softingCANBus.softingCAN packInt.pkgOut[1].pkg = txMessage.pkgIn.pkg addInteger.pkgOut[1].pkg = packInt.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt1.pkgIn.pkg = packager.pkgOut.pkg rxMessage.pkgOut.pkg = unpackInt.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt2.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg unpackInt6.pkgOut[1].pkg = unpackInt7.pkgIn.pkg unpackInt5.pkgOut[1].pkg = unpackInt6.pkgIn.pkg unpackInt4.pkgOut[1].pkg = unpackInt5.pkgIn.pkg unpackInt3.pkgOut[1].pkg = unpackInt4.pkgIn.pkg unpackInt2.pkgOut[1].pkg = unpackInt3.pkgIn.pkg packInt1.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg unpackInt6.pkgOut[1].pkg = unpackInt6.pkgIn.pkg unpackInt5.pkgOut[1].pkg = unpackInt5.pkgIn.pkg unpackInt4.pkgOut[1].pkg = unpackInt4.pkgIn.pkg unpackInt3.pkgOut[1].pkg = unpackInt3.pkgIn.pkg unpackInt2.pkgOut[1].pkg = unpackInt2.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg softingCANConfig.softingCANBus[2].softingCAN = softingCANConfig.softingCAN softingCANConfig.softingCANBus[1].softingCAN = softingCANConfig.softingCAN Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.00339/0.8092, allocations: 1.636 MB / 0.5527 GB, free: 15.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.517e-05/0.8093, allocations: 8.031 kB / 0.5527 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002096/0.8095, allocations: 125 kB / 0.5528 GB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/0.8098, allocations: 82.97 kB / 0.5529 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.8109, allocations: 0.4926 MB / 0.5534 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/0.811, allocations: 61.05 kB / 0.5534 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.8112, allocations: 75.11 kB / 0.5535 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.813, allocations: 0.7564 MB / 0.5542 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.8131, allocations: 3.938 kB / 0.5543 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.546e-05/0.8132, allocations: 31.23 kB / 0.5543 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.8132, allocations: 24 kB / 0.5543 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.8144, allocations: 436.6 kB / 0.5547 GB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/0.8185, allocations: 2.127 MB / 0.5568 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.8198, allocations: 0.5091 MB / 0.5573 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005629/0.8203, allocations: 260.5 kB / 0.5575 GB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.83e-05/0.8204, allocations: 11.98 kB / 0.5576 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007689/0.8212, allocations: 339.6 kB / 0.5579 GB, free: 10.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 4.679e-06/0.8212, allocations: 3.938 kB / 0.5579 GB, free: 10.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=63): time 0.001891/0.8231, allocations: 0.6841 MB / 0.5586 GB, free: 9.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002178/0.8234, allocations: 202.1 kB / 0.5587 GB, free: 9.145 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.8239, allocations: 310.6 kB / 0.559 GB, free: 8.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.824, allocations: 53.69 kB / 0.5591 GB, free: 8.777 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.8244, allocations: 328.2 kB / 0.5594 GB, free: 8.449 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.8247, allocations: 154.1 kB / 0.5596 GB, free: 8.297 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.214e-05/0.8247, allocations: 12 kB / 0.5596 GB, free: 8.285 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000234/0.825, allocations: 362.8 kB / 0.5599 GB, free: 7.922 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/0.8254, allocations: 174 kB / 0.5601 GB, free: 7.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008019/0.8262, allocations: 461.7 kB / 0.5605 GB, free: 7.172 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006425/0.8269, allocations: 267.7 kB / 0.5608 GB, free: 6.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.8269, allocations: 0 / 0.5608 GB, free: 6.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001683/0.8286, allocations: 0.6956 MB / 0.5614 GB, free: 6.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.8287, allocations: 8 kB / 0.5615 GB, free: 6.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.322e-05/0.8287, allocations: 16.86 kB / 0.5615 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.606e-05/0.8288, allocations: 19.94 kB / 0.5615 GB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006382/0.8294, allocations: 119.7 kB / 0.5616 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.375e-05/0.8295, allocations: 19.92 kB / 0.5616 GB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000458/0.8299, allocations: 63.38 kB / 0.5617 GB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.184e-05/0.83, allocations: 40 kB / 0.5617 GB, free: 5.926 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 90 ($PRE.unpackInt7.dummy,unpackInt7.dummy,$PRE.unpackInt7.y,unpackInt7.y,$PRE.unpackInt6.dummy,unpackInt6.dummy,$PRE.unpackInt6.y,unpackInt6.y,$PRE.unpackInt6.pkgOut[1].dummy,unpackInt6.pkgOut[1].dummy,$PRE.unpackInt5.dummy,unpackInt5.dummy,$PRE.unpackInt5.y,unpackInt5.y,$PRE.unpackInt5.pkgOut[1].dummy,unpackInt5.pkgOut[1].dummy,$PRE.unpackInt4.dummy,unpackInt4.dummy,$PRE.unpackInt4.y,unpackInt4.y,$PRE.unpackInt4.pkgOut[1].dummy,unpackInt4.pkgOut[1].dummy,$PRE.unpackInt3.dummy,unpackInt3.dummy,$PRE.unpackInt3.y,unpackInt3.y,$PRE.unpackInt3.pkgOut[1].dummy,unpackInt3.pkgOut[1].dummy,$PRE.unpackInt2.dummy,unpackInt2.dummy,$PRE.unpackInt2.y,unpackInt2.y,$PRE.unpackInt2.pkgOut[1].dummy,unpackInt2.pkgOut[1].dummy,$PRE.unpackInt1.dummy,unpackInt1.dummy,$PRE.unpackInt1.y,unpackInt1.y,$PRE.unpackInt1.pkgOut[1].dummy,unpackInt1.pkgOut[1].dummy,$PRE.unpackInt.dummy,unpackInt.dummy,$PRE.unpackInt.y,unpackInt.y,$PRE.unpackInt.pkgOut[1].dummy,unpackInt.pkgOut[1].dummy,$PRE.rxMessage.objectNumber,rxMessage.objectNumber,$PRE.rxMessage.pkgOut.dummy,rxMessage.pkgOut.dummy,$whenCondition2,unpackInt.pkgOut[1].trigger,unpackInt.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt2.pkgIn.autoPkgBitSize,unpackInt3.pkgIn.autoPkgBitSize,unpackInt4.pkgIn.autoPkgBitSize,unpackInt5.pkgIn.autoPkgBitSize,unpackInt6.pkgIn.autoPkgBitSize,unpackInt7.pkgIn.autoPkgBitSize,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$PRE.txMessage.objectNumber,txMessage.objectNumber,$PRE.txMessage.dummy,txMessage.dummy,$PRE.packInt1.pkgOut[1].dummy,packInt1.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.txMessage.softingCANBus.dummy,txMessage.softingCANBus.dummy,$PRE.rxMessage.softingCANBus.dummy,rxMessage.softingCANBus.dummy,$whenCondition1,packInt.pkgOut[1].trigger,packInt.pkgOut[1].backwardTrigger,addInteger.u[1],integerExpression2.y,unpackInt7.pkgIn.userPkgBitSize,unpackInt7.pkgIn.backwardTrigger,addInteger.pkgIn.autoPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,txMessage.pkgIn.userPkgBitSize,txMessage.pkgIn.autoPkgBitSize,packager.backwardPropagatedBufferSize,packager.bufferSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003257/0.8304, allocations: 209.2 kB / 0.5619 GB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.8305, allocations: 51.39 kB / 0.562 GB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.8306, allocations: 36 kB / 0.562 GB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/0.8307, allocations: 8 kB / 0.562 GB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.8307, allocations: 3.984 kB / 0.562 GB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.8307, allocations: 4 kB / 0.562 GB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002924/0.8336, allocations: 1.435 MB / 0.5634 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.8337, allocations: 4 kB / 0.5634 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.256e-05/0.8338, allocations: 15.98 kB / 0.5634 GB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.8338, allocations: 4 kB / 0.5634 GB, free: 4.082 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.078e-05/0.8339, allocations: 15.98 kB / 0.5635 GB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.8339, allocations: 0 / 0.5635 GB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/0.8339, allocations: 4 kB / 0.5635 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/0.8357, allocations: 0.9282 MB / 0.5644 GB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.8358, allocations: 128.4 kB / 0.5645 GB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.194e-05/0.8359, allocations: 15.98 kB / 0.5645 GB, free: 2.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.8362, allocations: 16.11 kB / 0.5645 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.947e-05/0.8364, allocations: 28.16 kB / 0.5646 GB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.093e-05/0.8365, allocations: 31.97 kB / 0.5646 GB, free: 2.848 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003032/0.8368, allocations: 186.2 kB / 0.5648 GB, free: 2.672 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.104e-06/0.8368, allocations: 0 / 0.5648 GB, free: 2.672 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001345/0.8381, allocations: 239.2 kB / 0.565 GB, free: 2.438 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 55 (packInt.pkgOut[1].trigger,$whenCondition1,addInteger.pkgOut[1].dummy,addInteger.u[1],packInt.pkgOut[1].dummy,packInt.pkgOut[1].backwardTrigger,packInt1.pkgOut[1].dummy,txMessage.softingCANBus.dummy,txMessage.objectNumber,txMessage.dummy,packager.pkgOut.dummy,integerExpression2.y,addInteger.pkgIn.autoPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,txMessage.pkgIn.userPkgBitSize,txMessage.pkgIn.autoPkgBitSize,packager.backwardPropagatedBufferSize,packager.bufferSize,unpackInt.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt2.pkgIn.autoPkgBitSize,unpackInt3.pkgIn.autoPkgBitSize,unpackInt4.pkgIn.autoPkgBitSize,unpackInt5.pkgIn.autoPkgBitSize,unpackInt6.pkgIn.autoPkgBitSize,unpackInt7.pkgIn.autoPkgBitSize,unpackInt.pkgOut[1].trigger,$whenCondition2,rxMessage.softingCANBus.dummy,rxMessage.pkgOut.dummy,rxMessage.objectNumber,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,unpackInt2.pkgOut[1].dummy,unpackInt2.y,unpackInt2.dummy,unpackInt3.pkgOut[1].dummy,unpackInt3.y,unpackInt3.dummy,unpackInt4.pkgOut[1].dummy,unpackInt4.y,unpackInt4.dummy,unpackInt5.pkgOut[1].dummy,unpackInt5.y,unpackInt5.dummy,unpackInt6.pkgOut[1].dummy,unpackInt6.y,unpackInt6.dummy,unpackInt7.y,unpackInt7.dummy) * Number of discrete states: 4 (rxMessage.objectNumber,rxMessage.softingCANBus.dummy,txMessage.objectNumber,txMessage.softingCANBus.dummy) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 40 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003387/0.8415, allocations: 2.014 MB / 0.567 GB, free: 432 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.843, allocations: 0.5381 MB / 0.5675 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.843, allocations: 0 / 0.5675 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005469/0.8435, allocations: 252.2 kB / 0.5677 GB, free: 15.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008131/0.8444, allocations: 86.86 kB / 0.5678 GB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.8488, allocations: 1.154 MB / 0.5689 GB, free: 14.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006993/0.8495, allocations: 0.9415 MB / 0.5699 GB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002769/0.8498, allocations: 64.97 kB / 0.5699 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.8502, allocations: 199.4 kB / 0.5701 GB, free: 13.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.292e-06/0.8502, allocations: 0 / 0.5701 GB, free: 13.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0503/0.9005, allocations: 11.08 MB / 0.5809 GB, free: 2.227 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0006013/0.9012, allocations: 255.3 kB / 0.5812 GB, free: 1.891 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -c -o Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN.o Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN.c In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN.c:7: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -c -o Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.o Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:2: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:7: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_includes.h:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:49:3: error: "Modelica_DeviceDrivers: SoftingCAN driver only supported on WINDOWS!" # error "Modelica_DeviceDrivers: SoftingCAN driver only supported on WINDOWS!" ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:120:5: error: unknown type name 'CAN_HANDLE' CAN_HANDLE can; ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:129:5: error: unknown type name 'CAN_HANDLE' CAN_HANDLE ulChannelHandle; ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:146:11: warning: implicit declaration of function 'INIL2_initialize_channel' is invalid in C99 [-Wimplicit-function-declaration] ret = INIL2_initialize_channel(&channel.ulChannelHandle, (char*) channel.sChannelName); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:154:11: warning: implicit declaration of function 'CANL2_reset_chip' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_reset_chip(mDDSoftingCAN->can); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:174:19: warning: implicit declaration of function 'CANL2_initialize_chip' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_initialize_chip(mDDSoftingCAN->can, PRESCALER_1, SYNC_JMP_WIDTH_1, TIME_SEG1_1, ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:218:11: warning: implicit declaration of function 'CANL2_set_acceptance' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_set_acceptance(mDDSoftingCAN->can, ACCEPT_MASK_1, ACCEPT_CODE_1, ACCEPT_MASK_XTD_1, ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:226:11: warning: implicit declaration of function 'CANL2_set_output_control' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_set_output_control(mDDSoftingCAN->can, OUTPUT_CONTROL_1); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:233:11: warning: implicit declaration of function 'CANL2_enable_dyn_obj_buf' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_enable_dyn_obj_buf(mDDSoftingCAN->can); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:240:11: warning: implicit declaration of function 'CANL2_initialize_interface' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_initialize_interface(mDDSoftingCAN->can, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:252:5: warning: implicit declaration of function 'INIL2_close_channel' is invalid in C99 [-Wimplicit-function-declaration] INIL2_close_channel(mDDSoftingCAN->can); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:274:11: warning: implicit declaration of function 'CANL2_define_object' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_define_object(mDDSoftingCAN->can, ident, &objectNumber, ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:306:11: warning: implicit declaration of function 'CANL2_write_object' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_write_object(mDDSoftingCAN->can, objectNumber, dataLength, ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:328:15: error: use of undeclared identifier 'CANL2_RA_NO_DATA' int frc = CANL2_RA_NO_DATA; ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:329:5: error: use of undeclared identifier 'byte' byte* rcvBuffer = (byte*) ModelicaAllocateString(8); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:329:11: error: use of undeclared identifier 'rcvBuffer'; did you mean 'logBuffer'? byte* rcvBuffer = (byte*) ModelicaAllocateString(8); ^~~~~~~~~ logBuffer ./util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:7: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_includes.h:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:329:29: error: expected expression byte* rcvBuffer = (byte*) ModelicaAllocateString(8); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:329:24: error: use of undeclared identifier 'byte' byte* rcvBuffer = (byte*) ModelicaAllocateString(8); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:332:11: warning: implicit declaration of function 'CANL2_read_rcv_data' is invalid in C99 [-Wimplicit-function-declaration] frc = CANL2_read_rcv_data(mDDSoftingCAN->can, objectNumber, ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:333:31: error: use of undeclared identifier 'rcvBuffer'; did you mean 'logBuffer'? rcvBuffer, &Time); ^~~~~~~~~ logBuffer ./util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:7: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_includes.h:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:340:20: error: use of undeclared identifier 'rcvBuffer'; did you mean 'logBuffer'? memcpy(rcvBuffer, serialPackager->data, 8); ^~~~~~~~~ logBuffer ./util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:7: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_includes.h:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:356:42: error: use of undeclared identifier 'rcvBuffer'; did you mean 'logBuffer'? memcpy(serialPackager->data, rcvBuffer, 8); ^~~~~~~~~ logBuffer ./util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:7: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_includes.h:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:365:26: error: use of undeclared identifier 'rcvBuffer' return (const char*) rcvBuffer; ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:377:15: error: use of undeclared identifier 'CANL2_RA_NO_DATA' int frc = CANL2_RA_NO_DATA; ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:378:5: error: use of undeclared identifier 'byte' byte rcvBuffer[8]; ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:381:11: warning: implicit declaration of function 'CANL2_read_rcv_data' is invalid in C99 [-Wimplicit-function-declaration] frc = CANL2_read_rcv_data(mDDSoftingCAN->can, objectNumber, ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:382:31: error: use of undeclared identifier 'rcvBuffer'; did you mean 'logBuffer'? rcvBuffer, &Time); ^~~~~~~~~ logBuffer ./util/omc_error.h:148:13: note: 'logBuffer' declared here extern char logBuffer[2048]; ^ In file included from Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:7: In file included from ./Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_includes.h:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:404:79: error: use of undeclared identifier 'rcvBuffer' MDD_SerialPackagerSetDataWithErrorReturn(p_package, (const char*) rcvBuffer, 8); ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSoftingCAN.h:422:11: warning: implicit declaration of function 'CANL2_start_chip' is invalid in C99 [-Wimplicit-function-declaration] ret = CANL2_start_chip(mDDSoftingCAN->can); ^ Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.c:477:42: warning: passing 'const int *' to parameter of type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] MDD_SerialPackagerAddInteger(_pkg_ext, (const int*) _u_c89, size_of_dimension_base_array(_u, ((modelica_integer) 1)), _byteOrder_ext); ^~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:243:68: note: passing argument to parameter 'u' here DllExport void MDD_SerialPackagerAddInteger(void* p_package, int * u, size_t n, int endian) { ^ 16 warnings and 16 errors generated. make: *** [: Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SoftingCAN_functions.o] Error 1