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.001114/0.001115, allocations: 110.7 kB / 16.45 MB, free: 6.457 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.001077/0.001077, allocations: 189.5 kB / 17.38 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.386/1.386, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.05994/0.05994, allocations: 12.06 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 64.91 kB / 419.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1024, allocations: 52.32 MB / 471.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.005063/0.1076, allocations: 2.67 MB / 474.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008296/0.1084, allocations: 354.8 kB / 474.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.1087, allocations: 7.938 kB / 474.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003089/0.109, allocations: 43.66 kB / 475 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.1093, allocations: 55.72 kB / 475 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000323/0.1096, allocations: 79.73 kB / 475.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.1099, allocations: 156 kB / 475.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.1101, allocations: 81.36 kB / 475.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.1103, allocations: 63.72 kB / 475.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.1104, allocations: 67.69 kB / 475.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.072e-05/0.1104, allocations: 12 kB / 475.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002813/0.1107, allocations: 139.9 kB / 475.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.119e-05/0.1108, allocations: 43.84 kB / 475.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.393e-05/0.1109, allocations: 67.61 kB / 475.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.1114, allocations: 231.3 kB / 475.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1114, allocations: 0 / 475.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1114, allocations: 0 / 475.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.1114, allocations: 0 / 475.9 MB, free: 9.418 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.0008197/0.1122, allocations: 466.8 kB / 476.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1123, allocations: 8.031 kB / 476.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.816e-05/0.1124, allocations: 50.73 kB / 476.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/0.1124, allocations: 16.84 kB / 476.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.1127, allocations: 224.1 kB / 476.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.1127, allocations: 8.609 kB / 476.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.1128, allocations: 20.36 kB / 476.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.1131, allocations: 156.8 kB / 476.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1131, allocations: 7.875 kB / 476.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.1131, allocations: 7.938 kB / 476.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1131, allocations: 4 kB / 476.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.1133, allocations: 76.2 kB / 477 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007565/0.1141, allocations: 477.5 kB / 477.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.1143, allocations: 69.25 kB / 477.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.832e-05/0.1143, allocations: 45.8 kB / 477.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.1144, allocations: 3.938 kB / 477.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.1147, allocations: 89.09 kB / 477.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.1147, allocations: 0 / 477.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003533/0.115, allocations: 121.8 kB / 477.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.1151, allocations: 89.09 kB / 477.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.1153, allocations: 166.1 kB / 478 MB, free: 7.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.1154, allocations: 25.7 kB / 478 MB, free: 7.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.1155, allocations: 132.2 kB / 478.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.391e-05/0.1155, allocations: 31.73 kB / 478.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-05/0.1156, allocations: 29.7 kB / 478.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1157, allocations: 326.8 kB / 478.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.509e-05/0.1158, allocations: 31.98 kB / 478.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.261e-05/0.1159, allocations: 55.36 kB / 478.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.116, allocations: 83.41 kB / 478.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.116, allocations: 3.938 kB / 478.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002061/0.1163, allocations: 125.5 kB / 478.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1163, allocations: 8 kB / 478.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.1163, allocations: 320 / 478.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1163, allocations: 3.984 kB / 478.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.336e-05/0.1164, allocations: 15.98 kB / 478.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.1164, allocations: 4 kB / 478.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.587e-05/0.1165, allocations: 4 kB / 478.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.1165, allocations: 4 kB / 478.9 MB, free: 6.188 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 0.0001399/0.1166, allocations: 143.3 kB / 479 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/0.1167, allocations: 15.94 kB / 479 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.979e-05/0.1167, allocations: 16.72 kB / 479 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1167, allocations: 0 / 479 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1167, allocations: 3.938 kB / 479 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1168, allocations: 0 / 479 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.117, allocations: 233.5 kB / 479.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.117, allocations: 0 / 479.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.489e-05/0.117, allocations: 7.938 kB / 479.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.117, allocations: 0 / 479.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1171, allocations: 4 kB / 479.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1171, allocations: 0 / 479.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1171, allocations: 4 kB / 479.3 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002149/0.1173, allocations: 145.7 kB / 479.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.675e-05/0.1173, allocations: 85.06 kB / 479.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.1174, allocations: 0 / 479.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.766e-05/0.1174, allocations: 0 / 479.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.1175, allocations: 7.984 kB / 479.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.1175, allocations: 8 kB / 479.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.336e-05/0.1176, allocations: 116.1 kB / 479.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1176, allocations: 0 / 479.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000261/0.1178, allocations: 39.89 kB / 479.7 MB, free: 5.273 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.0009059/0.1188, allocations: 0.8246 MB / 480.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.119, allocations: 105.6 kB / 480.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.119, allocations: 0 / 480.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.058e-05/0.1191, allocations: 57.69 kB / 480.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000167/0.1192, allocations: 4 kB / 480.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.121, allocations: 1.655 MB / 482.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.1213, allocations: 0.7353 MB / 483 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.99e-05/0.1213, allocations: 8.547 kB / 483.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.724e-05/0.1214, allocations: 43.42 kB / 483.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1214, allocations: 0 / 483.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.1455, allocations: 3.418 MB / 486.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/7.901, allocations: 18.5 kB / 486.5 MB, free: 14.44 MB / 366.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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)