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.001337/0.001338, allocations: 103.7 kB / 16.45 MB, free: 6.453 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.002021/0.002021, allocations: 189 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.618/1.618, allocations: 222.9 MB / 241.1 MB, free: 15.05 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.067/0.067, allocations: 12.04 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 60.09 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1138, allocations: 52.33 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.00497/0.1188, allocations: 2.67 MB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006742/0.1195, allocations: 350.9 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.1196, allocations: 3.938 kB / 474.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.1199, allocations: 55.58 kB / 475 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.1201, allocations: 51.73 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.1203, allocations: 83.72 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000245/0.1206, allocations: 148 kB / 475.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.1208, allocations: 85.38 kB / 475.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.025e-05/0.1209, allocations: 59.77 kB / 475.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.121, allocations: 67.69 kB / 475.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.268e-05/0.1211, allocations: 12 kB / 475.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002371/0.1213, allocations: 135.9 kB / 475.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.598e-05/0.1214, allocations: 47.78 kB / 475.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.276e-05/0.1215, allocations: 59.61 kB / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.1219, allocations: 235.4 kB / 475.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.1219, allocations: 0 / 475.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.272e-06/0.122, allocations: 4 kB / 475.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.122, allocations: 3.938 kB / 475.9 MB, free: 9.285 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.0007766/0.1228, allocations: 462.7 kB / 476.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.1228, allocations: 8.031 kB / 476.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.018e-05/0.1229, allocations: 46.73 kB / 476.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.123, allocations: 16.84 kB / 476.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1233, allocations: 236 kB / 476.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.1233, allocations: 12.61 kB / 476.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.1233, allocations: 12.38 kB / 476.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003272/0.1237, allocations: 152.8 kB / 476.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.1237, allocations: 3.938 kB / 476.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.1237, allocations: 8 kB / 476.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1238, allocations: 0 / 476.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.124, allocations: 84.12 kB / 477 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007863/0.1248, allocations: 473.6 kB / 477.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.1249, allocations: 77.14 kB / 477.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.633e-05/0.125, allocations: 41.84 kB / 477.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.734e-05/0.1251, allocations: 0 / 477.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.1253, allocations: 97.03 kB / 477.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.1253, allocations: 0 / 477.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003942/0.1257, allocations: 121.5 kB / 477.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/0.1258, allocations: 81.11 kB / 477.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.126, allocations: 162.1 kB / 478 MB, free: 6.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.1261, allocations: 29.7 kB / 478 MB, free: 6.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.1262, allocations: 136.2 kB / 478.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.785e-05/0.1262, allocations: 31.73 kB / 478.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.1263, allocations: 29.72 kB / 478.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.1265, allocations: 330.8 kB / 478.5 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.142e-05/0.1266, allocations: 23.98 kB / 478.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.337e-05/0.1267, allocations: 51.42 kB / 478.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.1268, allocations: 95.33 kB / 478.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1268, allocations: 0 / 478.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002149/0.127, allocations: 121.5 kB / 478.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1271, allocations: 4 kB / 478.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.1271, allocations: 8.297 kB / 478.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.1271, allocations: 3.938 kB / 478.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.141e-05/0.1272, allocations: 8 kB / 478.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.1272, allocations: 12.06 kB / 478.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.65e-05/0.1273, allocations: 4 kB / 478.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.1273, allocations: 4 kB / 478.9 MB, free: 6.059 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.0001461/0.1274, allocations: 141.7 kB / 479 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.1274, allocations: 12.14 kB / 479 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.057e-05/0.1275, allocations: 20.69 kB / 479 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1275, allocations: 7.938 kB / 479 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1275, allocations: 3.938 kB / 479 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1275, allocations: 0 / 479 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.1278, allocations: 229.5 kB / 479.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.1278, allocations: 7.984 kB / 479.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.485e-05/0.1279, allocations: 8 kB / 479.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1279, allocations: 0 / 479.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.1279, allocations: 0 / 479.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1279, allocations: 0 / 479.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1279, allocations: 4 kB / 479.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.1281, allocations: 137.8 kB / 479.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.735e-05/0.1282, allocations: 85.06 kB / 479.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.1282, allocations: 3.984 kB / 479.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.957e-05/0.1283, allocations: 8 kB / 479.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.1283, allocations: 4 kB / 479.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.1283, allocations: 0 / 479.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.1284, allocations: 116.1 kB / 479.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1285, allocations: 4 kB / 479.6 MB, free: 5.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000255/0.1287, allocations: 39.88 kB / 479.7 MB, free: 5.141 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.001179/0.1299, allocations: 0.8147 MB / 480.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002446/0.1302, allocations: 101.6 kB / 480.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1302, allocations: 0 / 480.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.752e-05/0.1303, allocations: 69.61 kB / 480.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/0.1305, allocations: 8 kB / 480.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00215/0.1326, allocations: 1.654 MB / 482.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.1331, allocations: 0.7236 MB / 483 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.489e-05/0.1331, allocations: 16.53 kB / 483.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.067e-05/0.1332, allocations: 47.42 kB / 483.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1332, allocations: 0 / 483.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.1602, allocations: 3.417 MB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.811/8.971, allocations: 10.3 kB / 486.5 MB, free: 14.31 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)