Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.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: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 104 kB / 16.45 MB, free: 6.434 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.001996/0.001996, allocations: 192.7 kB / 17.39 MB, free: 5.668 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.359/1.359, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05535/0.05535, allocations: 12.04 MB / 303.3 MB, free: 3.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 67.88 kB / 419.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09217/0.09333, allocations: 52.32 MB / 471.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003775/0.09713, allocations: 2.239 MB / 474.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003859/0.09754, allocations: 179.4 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.126e-05/0.09764, allocations: 4 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.09779, allocations: 19.81 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.09799, allocations: 43.86 kB / 474.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.09819, allocations: 47.89 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.09834, allocations: 75.77 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.09846, allocations: 24.2 kB / 474.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.711e-05/0.09852, allocations: 39.78 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.233e-05/0.09858, allocations: 27.86 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.0986, allocations: 4 kB / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.09879, allocations: 135.9 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.09883, allocations: 15.91 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.68e-05/0.09888, allocations: 31.81 kB / 474.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.09913, allocations: 143.6 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.09915, allocations: 4 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09916, allocations: 0 / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.09917, allocations: 0 / 474.9 MB, free: 10.33 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004796/0.09965, allocations: 454.1 kB / 475.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.0997, allocations: 8.031 kB / 475.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.09974, allocations: 42.73 kB / 475.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.09979, allocations: 8.844 kB / 475.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.1001, allocations: 192.3 kB / 475.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.1001, allocations: 8.375 kB / 475.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.1001, allocations: 8.375 kB / 475.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.1005, allocations: 153.5 kB / 475.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1005, allocations: 3.938 kB / 475.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.1005, allocations: 0 / 475.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1005, allocations: 0 / 475.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.152e-05/0.1006, allocations: 35.94 kB / 475.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003949/0.101, allocations: 305.6 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.1012, allocations: 158.2 kB / 476.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.574e-05/0.1013, allocations: 41.72 kB / 476.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.1013, allocations: 4 kB / 476.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1014, allocations: 34.56 kB / 476.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.1014, allocations: 0 / 476.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003374/0.1017, allocations: 160.9 kB / 476.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.1018, allocations: 136.5 kB / 476.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1019, allocations: 137 kB / 476.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1019, allocations: 29.73 kB / 476.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.698e-05/0.102, allocations: 96.05 kB / 476.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.102, allocations: 7.906 kB / 476.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/0.1021, allocations: 33.7 kB / 476.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1022, allocations: 326.8 kB / 477.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.532e-05/0.1023, allocations: 8 kB / 477.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.697e-05/0.1023, allocations: 61.94 kB / 477.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.1025, allocations: 180.8 kB / 477.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1025, allocations: 0 / 477.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001942/0.1027, allocations: 156.8 kB / 477.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.1027, allocations: 59.39 kB / 477.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1027, allocations: 4 kB / 477.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1028, allocations: 4 kB / 477.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.419e-05/0.1028, allocations: 4 kB / 477.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.1028, allocations: 4 kB / 477.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.269e-05/0.1029, allocations: 12.16 kB / 477.7 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.1029, allocations: 8 kB / 477.7 MB, free: 7.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0001239/0.103, allocations: 181.1 kB / 477.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.1031, allocations: 61.59 kB / 478 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.1032, allocations: 8.312 kB / 478 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1032, allocations: 0 / 478 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1032, allocations: 4 kB / 478 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1032, allocations: 0 / 478 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.1034, allocations: 193.5 kB / 478.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1034, allocations: 4 kB / 478.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.371e-05/0.1034, allocations: 7.938 kB / 478.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1034, allocations: 0 / 478.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1034, allocations: 8.297 kB / 478.2 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.1034, allocations: 4 kB / 478.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1035, allocations: 3.938 kB / 478.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002547/0.1037, allocations: 259.7 kB / 478.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.1038, allocations: 84.95 kB / 478.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.1038, allocations: 8.141 kB / 478.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.359e-05/0.1039, allocations: 4 kB / 478.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.1039, allocations: 7.984 kB / 478.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.1039, allocations: 4 kB / 478.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.348e-05/0.104, allocations: 107.2 kB / 478.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.104, allocations: 0 / 478.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.1043, allocations: 28 kB / 478.7 MB, free: 6.004 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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.000999/0.1053, allocations: 0.9846 MB / 479.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002323/0.1055, allocations: 162.7 kB / 479.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1055, allocations: 448 / 479.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.611e-05/0.1056, allocations: 134.7 kB / 480 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.1059, allocations: 31.22 kB / 480 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.1074, allocations: 1.557 MB / 481.5 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.1077, allocations: 0.6962 MB / 482.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.656e-05/0.1078, allocations: 16.66 kB / 482.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.261e-05/0.1078, allocations: 19.44 kB / 482.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1078, allocations: 0 / 482.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.1254, allocations: 3.196 MB / 485.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.471/7.596, allocations: 15.56 kB / 485.5 MB, free: 15.17 MB / 366.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)