Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 93.02 kB / 16.37 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 180.6 kB / 17.27 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 223.2 MB / 241.3 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.2072/0.2072, allocations: 12.04 MB / 304.4 MB, free: 1.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003764, allocations: 11.94 kB / 368.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1494, allocations: 53.35 MB / 421.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.00386/0.1533, allocations: 2.252 MB / 423.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005194/0.1539, allocations: 303.1 kB / 424.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.154, allocations: 7.938 kB / 424.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002567/0.1542, allocations: 31.78 kB / 424.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.1544, allocations: 19.8 kB / 424.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.1546, allocations: 67.8 kB / 424.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001678/0.1548, allocations: 128.1 kB / 424.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.155, allocations: 57.67 kB / 424.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.978e-05/0.155, allocations: 47.78 kB / 424.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.1552, allocations: 51.77 kB / 424.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.1552, allocations: 0 / 424.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.01e-05/0.1553, allocations: 12 kB / 424.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.495e-05/0.1554, allocations: 43.83 kB / 424.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.08e-05/0.1554, allocations: 49.58 kB / 424.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.1557, allocations: 143.9 kB / 424.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.1557, allocations: 0 / 424.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1557, allocations: 0 / 424.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1557, allocations: 0 / 424.8 MB, free: 0.8828 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007078/0.1564, allocations: 438.8 kB / 425.3 MB, free: 416 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1565, allocations: 8.031 kB / 425.3 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.221e-05/0.1565, allocations: 23.72 kB / 425.3 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.1568, allocations: 222.7 kB / 425.5 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1569, allocations: 8 kB / 425.5 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.992e-05/0.1569, allocations: 19.95 kB / 425.5 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3275/0.4844, allocations: 177.7 kB / 425.7 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4845, allocations: 0 / 425.7 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.4845, allocations: 6.875 kB / 425.7 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.4845, allocations: 2.781 kB / 425.7 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.4848, allocations: 117.6 kB / 425.8 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008601/0.4856, allocations: 479 kB / 426.3 MB, free: 39.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.4858, allocations: 122.5 kB / 426.4 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.4859, allocations: 75.42 kB / 426.5 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.217e-05/0.486, allocations: 2.688 kB / 426.5 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.4863, allocations: 133 kB / 426.6 MB, free: 39.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.4863, allocations: 0 / 426.6 MB, free: 39.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004574/0.4868, allocations: 250.3 kB / 426.9 MB, free: 39.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.4868, allocations: 92.84 kB / 427 MB, free: 39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.4869, allocations: 144.4 kB / 427.1 MB, free: 38.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.487, allocations: 34.11 kB / 427.1 MB, free: 38.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/0.487, allocations: 127.4 kB / 427.3 MB, free: 38.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.4871, allocations: 67.3 kB / 427.3 MB, free: 38.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.049e-05/0.4871, allocations: 4.562 kB / 427.3 MB, free: 38.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.365e-05/0.4872, allocations: 335 kB / 427.7 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.4873, allocations: 69.94 kB / 427.7 MB, free: 38.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.4875, allocations: 164.3 kB / 427.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.4876, allocations: 97.75 kB / 428 MB, free: 38.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4876, allocations: 8.281 kB / 428 MB, free: 38.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003587/0.488, allocations: 270.5 kB / 428.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.488, allocations: 6.031 kB / 428.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.488, allocations: 3.547 kB / 428.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.991e-05/0.4881, allocations: 5.625 kB / 428.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.4882, allocations: 30.42 kB / 428.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.4882, allocations: 10.59 kB / 428.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.449e-05/0.4883, allocations: 22.3 kB / 428.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.4883, allocations: 13.09 kB / 428.4 MB, free: 38.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[7],keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.keySpace,$PRE.keyboardInput.KeyCode[6],keyboardInput.KeyCode[6],keyboardInput.keyReturn,$PRE.keyboardInput.KeyCode[5],keyboardInput.KeyCode[5],keyboardInput.keyLeft,$PRE.keyboardInput.KeyCode[4],keyboardInput.KeyCode[4],keyboardInput.keyRight,$PRE.keyboardInput.KeyCode[3],keyboardInput.KeyCode[3],keyboardInput.keyDown,$PRE.keyboardInput.KeyCode[2],keyboardInput.KeyCode[2],keyboardInput.keyUp,$PRE.keyboardInput.KeyCode[1],keyboardInput.KeyCode[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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.0001476/0.4885, allocations: 175.4 kB / 428.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.832e-05/0.4885, allocations: 13.91 kB / 428.5 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.232e-05/0.4886, allocations: 16.05 kB / 428.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.4886, allocations: 3.594 kB / 428.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.4886, allocations: 3.812 kB / 428.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4886, allocations: 5.609 kB / 428.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.4888, allocations: 247.5 kB / 428.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.4888, allocations: 0 / 428.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.546e-05/0.4889, allocations: 9.062 kB / 428.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.4889, allocations: 1 kB / 428.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.4889, allocations: 0 / 428.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4889, allocations: 7.406 kB / 428.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4889, allocations: 0 / 428.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.4892, allocations: 232.6 kB / 429.1 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.331e-05/0.4892, allocations: 97.03 kB / 429.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.4892, allocations: 3.688 kB / 429.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.595e-05/0.4893, allocations: 1 kB / 429.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.943e-05/0.4893, allocations: 12.53 kB / 429.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.4893, allocations: 3.375 kB / 429.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.3e-05/0.4894, allocations: 111.5 kB / 429.3 MB, free: 37.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4894, allocations: 0 / 429.3 MB, free: 37.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.4897, allocations: 50.41 kB / 429.3 MB, free: 37.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition1,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0005517/0.4902, allocations: 217.4 kB / 429.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.4906, allocations: 210.9 kB / 429.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4906, allocations: 0 / 429.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.4907, allocations: 99.12 kB / 429.8 MB, free: 37.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/0.4909, allocations: 17.81 kB / 429.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005849/0.4915, allocations: 421 kB / 430.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.4917, allocations: 0.7408 MB / 431 MB, free: 36.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.127e-05/0.4917, allocations: 16.47 kB / 431 MB, free: 36.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4917, allocations: 0 / 431 MB, free: 36.51 MB / 350.1 MB Notification: Performance of Templates: time 0.003924/0.4956, allocations: 2.252 MB / 433.3 MB, free: 36.34 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardCalcHelperMain.o] Error 1