Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009859/0.0009859, allocations: 79.36 kB / 20.46 MB, free: 4.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 169 kB / 23.84 MB, free: 0.7305 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.089/1.089, allocations: 177.1 MB / 204.2 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo): time 0.03694/0.03694, allocations: 9.154 MB / 269.9 MB, free: 4.273 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 4 kB / 342.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.855e-05, allocations: 4.422 kB / 342.6 MB, free: 7.305 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi): time 0.003458/0.003487, allocations: 3.365 MB / 345.9 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.004811, allocations: 1.074 MB / 347 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001503/0.004961, allocations: 11.88 kB / 347 MB, free: 2.824 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Blocks/HardwareIO.mo:9:5-31:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.HardwareIO.Comedi.ComediConfig' contains a call to impure function 'Modelica_DeviceDrivers.HardwareIO.Comedi.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003753/0.005336, allocations: 87.3 kB / 347.1 MB, free: 2.738 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.091e-05/0.005407, allocations: 51.41 kB / 347.1 MB, free: 2.688 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.005767, allocations: 231.1 kB / 347.4 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002027/0.005969, allocations: 335.4 kB / 347.7 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.006121, allocations: 79.19 kB / 347.8 MB, free: 2.051 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.006331, allocations: 187.6 kB / 348 MB, free: 1.867 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.006448, allocations: 127.7 kB / 348.1 MB, free: 1.742 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.00648, allocations: 28 kB / 348.1 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.006591, allocations: 107.8 kB / 348.2 MB, free: 1.609 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/0.006656, allocations: 87.66 kB / 348.3 MB, free: 1.523 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.826e-05/0.006724, allocations: 95.67 kB / 348.4 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003203/0.007045, allocations: 338.7 kB / 348.7 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.007048, allocations: 0 / 348.7 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.007049, allocations: 0 / 348.7 MB, free: 1.098 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.007054, allocations: 0 / 348.7 MB, free: 1.098 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000603/0.007657, allocations: 0.671 MB / 349.4 MB, free: 400 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.007693, allocations: 15.97 kB / 349.4 MB, free: 384 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.007886, allocations: 76.67 kB / 349.5 MB, free: 308 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.008117, allocations: 251.4 kB / 349.7 MB, free: 32 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.008144, allocations: 12.88 kB / 349.7 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.0082, allocations: 24.42 kB / 349.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003798/0.00858, allocations: 274.7 kB / 350 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.00859, allocations: 192 / 350 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.008612, allocations: 12.36 kB / 350 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.008623, allocations: 7.938 kB / 350.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.008757, allocations: 82.03 kB / 350.1 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007459/0.009503, allocations: 0.9448 MB / 351.1 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/0.009743, allocations: 222.7 kB / 351.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.54e-05/0.009839, allocations: 90.22 kB / 351.4 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.009868, allocations: 4 kB / 351.4 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003843/0.01025, allocations: 238 kB / 351.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/0.01025, allocations: 0 / 351.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005681/0.01082, allocations: 317.8 kB / 351.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.834e-05/0.0109, allocations: 183.9 kB / 352.1 MB, free: 13.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.01112, allocations: 326.2 kB / 352.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.01115, allocations: 29.7 kB / 352.5 MB, free: 12.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.01126, allocations: 227.5 kB / 352.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.816e-05/0.01133, allocations: 83.62 kB / 352.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.01143, allocations: 67.58 kB / 352.8 MB, free: 12.6 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.01159, allocations: 0.5156 MB / 353.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.797e-05/0.01166, allocations: 28.55 kB / 353.4 MB, free: 12.04 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.01182, allocations: 277.9 kB / 353.6 MB, free: 11.67 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.01206, allocations: 289.8 kB / 353.9 MB, free: 11.31 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.01206, allocations: 11.94 kB / 353.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002806/0.01234, allocations: 253 kB / 354.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.01236, allocations: 7.125 kB / 354.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.01238, allocations: 8.531 kB / 354.2 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.01239, allocations: 12 kB / 354.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.01257, allocations: 43.84 kB / 354.3 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.01258, allocations: 4 kB / 354.3 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.01269, allocations: 31.78 kB / 354.3 MB, free: 10.94 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.01271, allocations: 19.98 kB / 354.3 MB, free: 10.92 MB / 282.7 MB Warning: Assuming fixed start value for the following 5 variables: dataRead.y:DISCRETE(flow=false fixed = true ) type: Integer dioRead.y:DISCRETE(flow=false fixed = true ) type: Boolean dataWrite1.rawData:DISCRETE(fixed = true protected = true ) \"Raw value written to DAC channel\" type: Integer dataRead1.y:DISCRETE(flow=false fixed = true ) type: Real dataRead1.rawData:DISCRETE(fixed = true protected = true ) \"Raw value read from ADC channel\" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.dataRead.y,dataRead.y,$whenCondition6,$PRE.dioRead.y,dioRead.y,$whenCondition5,$PRE.dataWrite1.rawData,dataWrite1.rawData,$whenCondition4,dataWrite1.cUnit,dataWrite1.converterUnit,dataWrite1.max,dataWrite1.min,dataWrite1.maxData,$PRE.dataRead1.y,dataRead1.y,$PRE.dataRead1.rawData,dataRead1.rawData,$whenCondition3,dataRead1.maxData,dataRead1.cUnit,dataRead1.converterUnit,dataRead1.max,dataRead1.min,$whenCondition2,$whenCondition1,less.y,realToInteger.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0001705/0.01288, allocations: 200.2 kB / 354.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.421e-05/0.01293, allocations: 39.81 kB / 354.5 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.042e-05/0.01299, allocations: 29.84 kB / 354.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.01299, allocations: 7.938 kB / 354.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.013, allocations: 8 kB / 354.6 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.013, allocations: 7.922 kB / 354.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.0132, allocations: 240.4 kB / 354.8 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.01321, allocations: 0 / 354.8 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.906e-05/0.01326, allocations: 15.98 kB / 354.8 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.01326, allocations: 4 kB / 354.9 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.01328, allocations: 11.98 kB / 354.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.01328, allocations: 8 kB / 354.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01328, allocations: 0 / 354.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.01364, allocations: 346.4 kB / 355.2 MB, free: 9.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.01367, allocations: 31.75 kB / 355.2 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.01369, allocations: 4 kB / 355.2 MB, free: 9.895 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.298e-05/0.01375, allocations: 11.98 kB / 355.3 MB, free: 9.883 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.01381, allocations: 35.84 kB / 355.3 MB, free: 9.848 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.01383, allocations: 11.98 kB / 355.3 MB, free: 9.836 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001211/0.01395, allocations: 211 kB / 355.5 MB, free: 9.629 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01395, allocations: 0 / 355.5 MB, free: 9.629 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002669/0.01422, allocations: 99.7 kB / 355.6 MB, free: 9.531 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 23 ($whenCondition6,dataRead.y,$whenCondition5,dioRead.y,$whenCondition4,dataWrite1.min,dataWrite1.max,dataWrite1.converterUnit,dataWrite1.maxData,dataWrite1.rawData,dataWrite1.cUnit,$whenCondition3,dataRead1.y,dataRead1.min,dataRead1.max,dataRead1.converterUnit,dataRead1.maxData,dataRead1.rawData,dataRead1.cUnit,$whenCondition2,$whenCondition1,realToInteger.y,less.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 11 * 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.0008684/0.01509, allocations: 461.1 kB / 356.1 MB, free: 9.223 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.01541, allocations: 248.4 kB / 356.3 MB, free: 8.957 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.01542, allocations: 1.062 kB / 356.3 MB, free: 8.957 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.01553, allocations: 117.3 kB / 356.4 MB, free: 8.832 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.01579, allocations: 80.97 kB / 356.5 MB, free: 8.754 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008626/0.01665, allocations: 0.552 MB / 357 MB, free: 8.148 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.918e-05/0.01671, allocations: 100.3 kB / 357.1 MB, free: 8.031 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.161e-05/0.01679, allocations: 33.88 kB / 357.2 MB, free: 8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.01683, allocations: 24.5 kB / 357.2 MB, free: 7.977 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01683, allocations: 3.938 kB / 357.2 MB, free: 7.973 MB / 282.7 MB Notification: Performance of Templates: time 0.006621/0.02345, allocations: 4.419 MB / 361.6 MB, free: 3.613 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 2.978974547702819]