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.0009983/0.0009983, allocations: 79.36 kB / 20.47 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.001005/0.001005, 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 0.9533/0.9533, allocations: 177.2 MB / 204.2 MB, free: 5.621 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.03573/0.03573, allocations: 9.15 MB / 269.9 MB, free: 4.25 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.242e-06/1.242e-06, allocations: 0 / 342.6 MB, free: 7.277 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.235e-05/2.359e-05, allocations: 4.422 kB / 342.6 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestHardwareIOComedi): time 0.003256/0.003279, allocations: 3.357 MB / 345.9 MB, free: 3.895 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.004424, allocations: 1.086 MB / 347 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.004545, allocations: 11.88 kB / 347 MB, free: 2.789 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.0003457/0.00489, allocations: 75.3 kB / 347.1 MB, free: 2.715 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.697e-05/0.004957, allocations: 51.42 kB / 347.1 MB, free: 2.664 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.005328, allocations: 239 kB / 347.4 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002076/0.005536, allocations: 335.5 kB / 347.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.005703, allocations: 79.2 kB / 347.8 MB, free: 2.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.005894, allocations: 187.6 kB / 348 MB, free: 1.836 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.006015, allocations: 131.6 kB / 348.1 MB, free: 1.707 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.17e-05/0.006047, allocations: 28 kB / 348.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.00616, allocations: 99.84 kB / 348.2 MB, free: 1.582 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.006233, allocations: 91.66 kB / 348.3 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.344e-05/0.006306, allocations: 91.73 kB / 348.4 MB, free: 1.402 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.006622, allocations: 342.7 kB / 348.7 MB, free: 1.066 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.006624, allocations: 0 / 348.7 MB, free: 1.066 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.006624, allocations: 8 kB / 348.7 MB, free: 1.059 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.00663, allocations: 0 / 348.7 MB, free: 1.059 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.0005635/0.007193, allocations: 0.6709 MB / 349.4 MB, free: 360 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.007227, allocations: 8.031 kB / 349.4 MB, free: 352 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.007394, allocations: 72.69 kB / 349.5 MB, free: 280 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.007607, allocations: 247.4 kB / 349.7 MB, free: 8 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.818e-05/0.007655, allocations: 20.91 kB / 349.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.953e-05/0.007684, allocations: 24.38 kB / 349.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.008019, allocations: 278.7 kB / 350 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.008029, allocations: 192 / 350 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.008052, allocations: 8.375 kB / 350 MB, free: 15.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.008061, allocations: 7.938 kB / 350.1 MB, free: 15.63 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.008199, allocations: 78.08 kB / 350.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007321/0.008931, allocations: 0.9409 MB / 351.1 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000234/0.009165, allocations: 238.7 kB / 351.3 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.367e-05/0.009258, allocations: 78.17 kB / 351.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.009289, allocations: 15.97 kB / 351.4 MB, free: 14.13 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.009531, allocations: 234.1 kB / 351.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.292e-06/0.009532, allocations: 0 / 351.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004888/0.01002, allocations: 309.6 kB / 351.9 MB, free: 13.55 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.0101, allocations: 195.9 kB / 352.1 MB, free: 13.32 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.01032, allocations: 314.2 kB / 352.4 MB, free: 12.99 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.01034, allocations: 37.69 kB / 352.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.01045, allocations: 227.5 kB / 352.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.682e-05/0.01049, allocations: 79.38 kB / 352.8 MB, free: 12.64 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.97e-05/0.01056, allocations: 63.58 kB / 352.8 MB, free: 12.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.01072, allocations: 0.5157 MB / 353.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.98e-05/0.01078, allocations: 28.53 kB / 353.4 MB, free: 12.02 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.01094, allocations: 282.1 kB / 353.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003282/0.01127, allocations: 297.7 kB / 353.9 MB, free: 11.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.01127, allocations: 0 / 353.9 MB, free: 11.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000311/0.01158, allocations: 249.1 kB / 354.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.0116, allocations: 8 kB / 354.2 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/0.01161, allocations: 11.98 kB / 354.2 MB, free: 11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.01163, allocations: 4 kB / 354.2 MB, free: 11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.01174, allocations: 39.86 kB / 354.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.01175, allocations: 11.98 kB / 354.3 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.009e-05/0.01183, allocations: 35.78 kB / 354.3 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.01185, allocations: 12.41 kB / 354.3 MB, free: 10.9 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.0001646/0.01201, allocations: 203.9 kB / 354.5 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.017e-05/0.01206, allocations: 47.8 kB / 354.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.531e-05/0.01212, allocations: 33.78 kB / 354.6 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.01213, allocations: 4 kB / 354.6 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.01213, allocations: 0 / 354.6 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.01214, allocations: 11.94 kB / 354.6 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.01234, allocations: 236.4 kB / 354.8 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.01234, allocations: 4 kB / 354.8 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.482e-05/0.01239, allocations: 23.92 kB / 354.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.01239, allocations: 4 kB / 354.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.01241, allocations: 7.984 kB / 354.9 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.01241, allocations: 4 kB / 354.9 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.01241, allocations: 0 / 354.9 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003811/0.01279, allocations: 350.4 kB / 355.2 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.697e-05/0.01282, allocations: 31.75 kB / 355.2 MB, free: 9.867 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.01284, allocations: 15.98 kB / 355.3 MB, free: 9.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.928e-05/0.01289, allocations: 4 kB / 355.3 MB, free: 9.848 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.421e-05/0.01296, allocations: 35.83 kB / 355.3 MB, free: 9.812 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.01298, allocations: 12 kB / 355.3 MB, free: 9.801 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000245/0.01322, allocations: 215 kB / 355.5 MB, free: 9.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01322, allocations: 0 / 355.5 MB, free: 9.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002591/0.01348, allocations: 87.7 kB / 355.6 MB, free: 9.504 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.0007865/0.01427, allocations: 471.8 kB / 356.1 MB, free: 9.184 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003087/0.01458, allocations: 244.5 kB / 356.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01458, allocations: 0 / 356.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.0147, allocations: 117.1 kB / 356.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.01496, allocations: 89.67 kB / 356.5 MB, free: 8.719 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008408/0.0158, allocations: 0.5571 MB / 357.1 MB, free: 8.109 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.758e-05/0.01586, allocations: 96.31 kB / 357.2 MB, free: 7.996 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.428e-05/0.01592, allocations: 29.88 kB / 357.2 MB, free: 7.969 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.903e-05/0.01597, allocations: 32.48 kB / 357.2 MB, free: 7.938 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01597, allocations: 0 / 357.2 MB, free: 7.938 MB / 282.7 MB Notification: Performance of Templates: time 0.006383/0.02235, allocations: 4.177 MB / 361.4 MB, free: 3.809 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: 3.033196333795786]