Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_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.0007724/0.0007723, allocations: 102.8 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 181.7 kB / 16.97 MB, free: 6.879 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.45/1.45, allocations: 223.3 MB / 241 MB, free: 5.355 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.2718/0.2718, allocations: 12.03 MB / 304.2 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003864/0.0003865, allocations: 8 kB / 368.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1263, allocations: 53.35 MB / 421.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003455/0.1298, allocations: 2.341 MB / 424.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006784/0.1305, allocations: 358.9 kB / 424.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.1306, allocations: 3.938 kB / 424.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.1308, allocations: 47.77 kB / 424.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001316/0.131, allocations: 39.81 kB / 424.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.1312, allocations: 75.78 kB / 424.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.1314, allocations: 132.1 kB / 424.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.1315, allocations: 89.48 kB / 424.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.576e-05/0.1316, allocations: 39.78 kB / 424.8 MB, free: 492 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.815e-05/0.1317, allocations: 47.66 kB / 424.9 MB, free: 444 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.1317, allocations: 4 kB / 424.9 MB, free: 440 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.1319, allocations: 135.9 kB / 425 MB, free: 304 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.019e-05/0.132, allocations: 35.83 kB / 425.1 MB, free: 268 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.567e-05/0.1321, allocations: 77.33 kB / 425.1 MB, free: 184 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2342/0.3663, allocations: 212.5 kB / 425.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3663, allocations: 0 / 425.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3663, allocations: 0 / 425.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.3664, allocations: 0 / 425.3 MB, free: 37.12 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004964/0.3669, allocations: 423.7 kB / 425.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.3669, allocations: 9.938 kB / 425.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.278e-05/0.367, allocations: 44.48 kB / 425.8 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.367, allocations: 17.06 kB / 425.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.3672, allocations: 231.6 kB / 426.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3672, allocations: 8.391 kB / 426.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.3673, allocations: 13.75 kB / 426.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.3675, allocations: 160.4 kB / 426.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3675, allocations: 5.078 kB / 426.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.3675, allocations: 7.125 kB / 426.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.3675, allocations: 3.25 kB / 426.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.3677, allocations: 76.45 kB / 426.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.3682, allocations: 477.2 kB / 426.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.3683, allocations: 74.09 kB / 426.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.835e-05/0.3684, allocations: 41.53 kB / 426.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.3684, allocations: 1.094 kB / 426.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.3686, allocations: 93.73 kB / 427 MB, free: 36.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.694e-06/0.3686, allocations: 0.875 kB / 427 MB, free: 36.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002444/0.3689, allocations: 134.1 kB / 427.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.3689, allocations: 80.52 kB / 427.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.369, allocations: 163.2 kB / 427.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.369, allocations: 27.39 kB / 427.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.3691, allocations: 127.2 kB / 427.5 MB, free: 35.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.3691, allocations: 31.84 kB / 427.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.3692, allocations: 19.62 kB / 427.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.487e-05/0.3692, allocations: 330.8 kB / 427.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.422e-05/0.3693, allocations: 25.12 kB / 427.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.075e-05/0.3694, allocations: 55.94 kB / 428 MB, free: 35.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.98e-05/0.3695, allocations: 86.2 kB / 428.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3695, allocations: 3.781 kB / 428.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001586/0.3696, allocations: 123.1 kB / 428.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.3697, allocations: 6.516 kB / 428.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.3697, allocations: 0 / 428.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3697, allocations: 3.922 kB / 428.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.191e-05/0.3698, allocations: 18.06 kB / 428.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.3698, allocations: 7.547 kB / 428.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.523e-05/0.3698, allocations: 3.906 kB / 428.2 MB, free: 35.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-06/0.3698, allocations: 5.156 kB / 428.2 MB, free: 35.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 8.337e-05/0.3699, allocations: 136.2 kB / 428.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.848e-05/0.3699, allocations: 14.83 kB / 428.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.37, allocations: 16.75 kB / 428.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.37, allocations: 4.625 kB / 428.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.37, allocations: 0.9375 kB / 428.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.37, allocations: 3.672 kB / 428.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.3702, allocations: 234.1 kB / 428.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3702, allocations: 0 / 428.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.029e-05/0.3702, allocations: 7.5 kB / 428.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3702, allocations: 3.641 kB / 428.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.3702, allocations: 3.234 kB / 428.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3702, allocations: 0.5625 kB / 428.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3702, allocations: 2.812 kB / 428.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.3704, allocations: 140.6 kB / 428.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.3704, allocations: 91.09 kB / 428.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.3705, allocations: 2.125 kB / 428.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.61e-05/0.3705, allocations: 2.75 kB / 428.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.3706, allocations: 9.672 kB / 428.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.3706, allocations: 2.688 kB / 428.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.766e-05/0.3707, allocations: 113.7 kB / 429 MB, free: 34.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3707, allocations: 0 / 429 MB, free: 34.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002544/0.3709, allocations: 44.19 kB / 429 MB, free: 34.61 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0009087/0.3718, allocations: 0.8166 MB / 429.9 MB, free: 34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002026/0.3721, allocations: 102.5 kB / 430 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3721, allocations: 7.5 kB / 430 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.72e-05/0.3721, allocations: 58.36 kB / 430 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/0.3723, allocations: 7.062 kB / 430 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.3738, allocations: 1.704 MB / 431.7 MB, free: 32.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.374, allocations: 0.7236 MB / 432.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.705e-05/0.3741, allocations: 9.812 kB / 432.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.085e-05/0.3741, allocations: 49.52 kB / 432.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3741, allocations: 0 / 432.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01224/0.3864, allocations: 3.003 MB / 435.5 MB, free: 31.69 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/0.3866, allocations: 273 kB / 435.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.283, allocations: 0 / 435.8 MB, free: 31.33 MB / 350.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)