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.001832/0.001832, allocations: 83.69 kB / 20.25 MB, free: 4.172 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.001951/0.001951, allocations: 169.2 kB / 23.57 MB, free: 0.8555 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.58/1.58, allocations: 177.1 MB / 203.9 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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.07172/0.07172, allocations: 9.169 MB / 269.5 MB, free: 4.266 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.353e-06/1.353e-06, allocations: 0 / 341.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.633e-05/2.768e-05, allocations: 4.844 kB / 341.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi): time 0.00375/0.003778, allocations: 3.307 MB / 345.1 MB, free: 4.301 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.005336, allocations: 1.063 MB / 346.2 MB, free: 3.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.005484, allocations: 11.88 kB / 346.2 MB, free: 3.219 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.0003458/0.00583, allocations: 83.3 kB / 346.3 MB, free: 3.137 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.272e-05/0.005923, allocations: 51.47 kB / 346.3 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.006356, allocations: 235.2 kB / 346.6 MB, free: 2.855 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.006601, allocations: 331.4 kB / 346.9 MB, free: 2.531 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.006761, allocations: 75.28 kB / 347 MB, free: 2.453 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/0.006995, allocations: 199.5 kB / 347.1 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.007146, allocations: 123.7 kB / 347.3 MB, free: 2.137 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.819e-05/0.007194, allocations: 28 kB / 347.3 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.007337, allocations: 99.92 kB / 347.4 MB, free: 2.012 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.826e-05/0.007415, allocations: 87.66 kB / 347.5 MB, free: 1.926 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.444e-05/0.007499, allocations: 95.67 kB / 347.6 MB, free: 1.832 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.007898, allocations: 458.4 kB / 348 MB, free: 1.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.007901, allocations: 0 / 348 MB, free: 1.383 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.007903, allocations: 0 / 348 MB, free: 1.383 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.007908, allocations: 0 / 348 MB, free: 1.383 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.0007473/0.008655, allocations: 0.6944 MB / 348.7 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.008686, allocations: 8.031 kB / 348.7 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.008949, allocations: 68.69 kB / 348.8 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.009252, allocations: 251.4 kB / 349 MB, free: 316 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.009275, allocations: 24.86 kB / 349.1 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.009308, allocations: 16.38 kB / 349.1 MB, free: 272 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004666/0.009775, allocations: 306 kB / 349.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.009786, allocations: 192 / 349.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.009821, allocations: 12.38 kB / 349.4 MB, free: 15.92 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.009837, allocations: 11.92 kB / 349.4 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00035/0.01019, allocations: 122 kB / 349.5 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.01155, allocations: 0.9921 MB / 350.5 MB, free: 14.73 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/0.01205, allocations: 266.6 kB / 350.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/0.01229, allocations: 118.2 kB / 350.9 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.01232, allocations: 4 kB / 350.9 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004934/0.01282, allocations: 271.1 kB / 351.2 MB, free: 13.95 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.542e-06/0.01282, allocations: 4 kB / 351.2 MB, free: 13.94 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.001014/0.01383, allocations: 389.7 kB / 351.5 MB, free: 13.55 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002736/0.01411, allocations: 195.8 kB / 351.7 MB, free: 13.32 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.01452, allocations: 366.2 kB / 352.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.01456, allocations: 37.69 kB / 352.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.01484, allocations: 243.4 kB / 352.4 MB, free: 12.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.816e-05/0.01493, allocations: 79.64 kB / 352.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.01507, allocations: 79.58 kB / 352.5 MB, free: 12.49 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003077/0.01537, allocations: 0.5352 MB / 353.1 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.01553, allocations: 48.55 kB / 353.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.01591, allocations: 301.9 kB / 353.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005712/0.01648, allocations: 357.7 kB / 353.7 MB, free: 11.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.01649, allocations: 4 kB / 353.7 MB, free: 11.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006338/0.01712, allocations: 304.9 kB / 354 MB, free: 10.76 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.01714, allocations: 8.531 kB / 354.1 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.01716, allocations: 8 kB / 354.1 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.01718, allocations: 8 kB / 354.1 MB, free: 10.74 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.01737, allocations: 39.91 kB / 354.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.01739, allocations: 11.94 kB / 354.1 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.01755, allocations: 27.78 kB / 354.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.01758, allocations: 16 kB / 354.2 MB, free: 10.64 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.0002925/0.01787, allocations: 215.7 kB / 354.4 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.801e-05/0.01796, allocations: 43.8 kB / 354.4 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.921e-05/0.01804, allocations: 29.84 kB / 354.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.01804, allocations: 4 kB / 354.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.01805, allocations: 4 kB / 354.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.01806, allocations: 3.938 kB / 354.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004036/0.01846, allocations: 272.4 kB / 354.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.01847, allocations: 4.625 kB / 354.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.01857, allocations: 19.92 kB / 354.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.01858, allocations: 4 kB / 354.8 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.01861, allocations: 12 kB / 354.8 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.01861, allocations: 7.984 kB / 354.8 MB, free: 9.992 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.01862, allocations: 4 kB / 354.8 MB, free: 9.988 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007879/0.0194, allocations: 414.3 kB / 355.2 MB, free: 9.539 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.402e-05/0.01946, allocations: 31.75 kB / 355.2 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.0195, allocations: 7.984 kB / 355.2 MB, free: 9.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.01961, allocations: 8 kB / 355.2 MB, free: 9.492 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.01971, allocations: 31.89 kB / 355.3 MB, free: 9.461 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.01975, allocations: 15.98 kB / 355.3 MB, free: 9.445 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002416/0.01999, allocations: 239 kB / 355.5 MB, free: 9.211 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.01999, allocations: 0 / 355.5 MB, free: 9.211 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004694/0.02046, allocations: 95.69 kB / 355.6 MB, free: 9.117 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.001997/0.02246, allocations: 449 kB / 356 MB, free: 8.812 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006492/0.02311, allocations: 305.3 kB / 356.3 MB, free: 8.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.02311, allocations: 256 / 356.3 MB, free: 8.492 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.0234, allocations: 149.2 kB / 356.5 MB, free: 8.336 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.02383, allocations: 77.59 kB / 356.6 MB, free: 8.266 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.02507, allocations: 0.5872 MB / 357.1 MB, free: 7.625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.02528, allocations: 177 kB / 357.3 MB, free: 7.434 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.02539, allocations: 33.88 kB / 357.4 MB, free: 7.402 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.034e-05/0.02546, allocations: 28.5 kB / 357.4 MB, free: 7.375 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.02547, allocations: 0 / 357.4 MB, free: 7.375 MB / 282.7 MB Notification: Performance of Templates: time 0.0108/0.03626, allocations: 4.191 MB / 361.6 MB, free: 3.238 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: 4.716506104101427]