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.0008827/0.0008827, allocations: 80.23 kB / 20.98 MB, free: 3.551 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.001381/0.001381, allocations: 161 kB / 24.29 MB, free: 256 kB / 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 0.9453/0.9453, allocations: 177.1 MB / 204.6 MB, free: 5.641 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.04401/0.04401, allocations: 9.149 MB / 270.2 MB, free: 4.328 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.323e-06/1.323e-06, allocations: 0 / 342.6 MB, free: 7.633 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.652e-05, allocations: 2.312 kB / 342.6 MB, free: 7.629 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi): time 0.002852/0.002869, allocations: 3.348 MB / 345.9 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.003903, allocations: 1.071 MB / 347 MB, free: 3.184 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.004024, allocations: 11.88 kB / 347 MB, free: 3.172 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.0002979/0.004322, allocations: 87.3 kB / 347.1 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.451e-05/0.004387, allocations: 55.41 kB / 347.1 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.004725, allocations: 231.1 kB / 347.4 MB, free: 2.805 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.00493, allocations: 331.5 kB / 347.7 MB, free: 2.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.00507, allocations: 79.19 kB / 347.8 MB, free: 2.398 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.00524, allocations: 195.5 kB / 347.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.005353, allocations: 127.6 kB / 348.1 MB, free: 2.082 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/0.005384, allocations: 28 kB / 348.1 MB, free: 2.055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.005493, allocations: 103.8 kB / 348.2 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.597e-05/0.005559, allocations: 87.66 kB / 348.3 MB, free: 1.867 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.005624, allocations: 91.75 kB / 348.4 MB, free: 1.777 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002727/0.005896, allocations: 342.7 kB / 348.7 MB, free: 1.441 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005898, allocations: 0 / 348.7 MB, free: 1.441 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.005899, allocations: 0 / 348.7 MB, free: 1.441 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.005903, allocations: 0 / 348.7 MB, free: 1.441 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.0005511/0.006454, allocations: 0.6748 MB / 349.4 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.006487, allocations: 12.03 kB / 349.4 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.006668, allocations: 68.67 kB / 349.5 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.006878, allocations: 251.5 kB / 349.7 MB, free: 392 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.006898, allocations: 16.88 kB / 349.7 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.006923, allocations: 24.36 kB / 349.7 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.007207, allocations: 270.7 kB / 350 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.007216, allocations: 4.125 kB / 350 MB, free: 32 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.007237, allocations: 16.36 kB / 350 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.007246, allocations: 7.938 kB / 350 MB, free: 8 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.007405, allocations: 78.03 kB / 350.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000746/0.008151, allocations: 0.9487 MB / 351.1 MB, free: 14.92 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000515/0.008666, allocations: 222.7 kB / 351.3 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.00877, allocations: 90.22 kB / 351.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.008798, allocations: 4 kB / 351.4 MB, free: 14.51 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.00904, allocations: 226.8 kB / 351.6 MB, free: 14.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.362e-06/0.009041, allocations: 0 / 351.6 MB, free: 14.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004988/0.00954, allocations: 321.7 kB / 351.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.996e-05/0.00961, allocations: 187.9 kB / 352.1 MB, free: 13.7 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.009809, allocations: 326.2 kB / 352.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.009832, allocations: 29.7 kB / 352.4 MB, free: 13.33 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.009938, allocations: 223.5 kB / 352.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.02e-05/0.009988, allocations: 79.38 kB / 352.7 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.971e-05/0.01006, allocations: 71.56 kB / 352.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.01018, allocations: 0.5159 MB / 353.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.99e-05/0.01024, allocations: 32.53 kB / 353.4 MB, free: 12.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.0104, allocations: 273.9 kB / 353.6 MB, free: 12.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.01065, allocations: 289.8 kB / 353.9 MB, free: 11.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.01066, allocations: 4 kB / 353.9 MB, free: 11.65 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002968/0.01095, allocations: 260.9 kB / 354.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.01097, allocations: 4 kB / 354.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.01098, allocations: 12 kB / 354.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.011, allocations: 4 kB / 354.2 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.01111, allocations: 44.44 kB / 354.2 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.01112, allocations: 11.94 kB / 354.2 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.278e-05/0.0112, allocations: 35.77 kB / 354.3 MB, free: 11.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.01122, allocations: 12 kB / 354.3 MB, free: 11.27 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.0001702/0.01139, allocations: 200.9 kB / 354.5 MB, free: 11.06 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.01144, allocations: 39.81 kB / 354.5 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.811e-05/0.01149, allocations: 33.84 kB / 354.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.01149, allocations: 4 kB / 354.6 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.0115, allocations: 8 kB / 354.6 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.01151, allocations: 7.922 kB / 354.6 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.01171, allocations: 240.4 kB / 354.8 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.01171, allocations: 0 / 354.8 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.119e-05/0.01175, allocations: 23.86 kB / 354.8 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.01176, allocations: 4 kB / 354.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.01177, allocations: 11.98 kB / 354.8 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.01178, allocations: 4 kB / 354.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01178, allocations: 0 / 354.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/0.01214, allocations: 346.4 kB / 355.2 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.329e-05/0.01216, allocations: 27.75 kB / 355.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.01219, allocations: 8 kB / 355.2 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.38e-05/0.01224, allocations: 11.98 kB / 355.2 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.0123, allocations: 31.91 kB / 355.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.01232, allocations: 11.98 kB / 355.3 MB, free: 10.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001218/0.01244, allocations: 211 kB / 355.5 MB, free: 9.977 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01244, allocations: 0 / 355.5 MB, free: 9.977 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002694/0.01271, allocations: 95.7 kB / 355.6 MB, free: 9.883 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.000833/0.01355, allocations: 476.5 kB / 356 MB, free: 9.559 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003202/0.01387, allocations: 244.4 kB / 356.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.01387, allocations: 0 / 356.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.01399, allocations: 110.3 kB / 356.4 MB, free: 9.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.01426, allocations: 86.28 kB / 356.5 MB, free: 9.102 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008057/0.01506, allocations: 0.556 MB / 357 MB, free: 8.492 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.859e-05/0.01512, allocations: 100.3 kB / 357.1 MB, free: 8.375 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.77e-05/0.01519, allocations: 29.88 kB / 357.2 MB, free: 8.348 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/0.01523, allocations: 28.5 kB / 357.2 MB, free: 8.32 MB / 282.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01523, allocations: 0 / 357.2 MB, free: 8.32 MB / 282.7 MB Notification: Performance of Templates: time 0.006605/0.02184, allocations: 4.189 MB / 361.4 MB, free: 4.184 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.65184089099057]