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.001085/0.001085, allocations: 100.6 kB / 16.45 MB, free: 6.441 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.001136/0.001136, allocations: 188.9 kB / 17.38 MB, free: 5.691 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.352/1.352, 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.05832/0.05832, allocations: 12.05 MB / 303.3 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001239, allocations: 63.91 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.09898, allocations: 52.32 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.004982/0.104, allocations: 2.239 MB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005086/0.1045, allocations: 183.3 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.463e-05/0.1047, allocations: 0 / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.1049, allocations: 23.86 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.1051, allocations: 43.81 kB / 474.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002255/0.1054, allocations: 39.89 kB / 474.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.1056, allocations: 79.77 kB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1057, allocations: 36.19 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.56e-05/0.1058, allocations: 27.86 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.44e-05/0.1059, allocations: 39.83 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.1059, allocations: 4 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002274/0.1061, allocations: 131.9 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.01e-05/0.1062, allocations: 15.88 kB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.104e-05/0.1062, allocations: 35.8 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.1066, allocations: 147.8 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1066, allocations: 0 / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1066, allocations: 0 / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1066, allocations: 4 kB / 474.9 MB, free: 10.29 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.0006153/0.1072, allocations: 442.4 kB / 475.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1073, allocations: 12.03 kB / 475.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.808e-05/0.1073, allocations: 34.75 kB / 475.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.97e-05/0.1074, allocations: 12.89 kB / 475.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.1077, allocations: 204.2 kB / 475.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.1078, allocations: 384 / 475.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.1078, allocations: 12.38 kB / 475.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.1082, allocations: 157.4 kB / 475.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.1082, allocations: 7.875 kB / 475.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.1082, allocations: 4 kB / 475.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1082, allocations: 0 / 475.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.869e-05/0.1083, allocations: 35.98 kB / 475.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003237/0.1086, allocations: 297.6 kB / 476.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001846/0.1088, allocations: 150.2 kB / 476.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.71e-05/0.1089, allocations: 41.78 kB / 476.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.1089, allocations: 4 kB / 476.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.109, allocations: 38.5 kB / 476.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.109, allocations: 0 / 476.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003195/0.1093, allocations: 165 kB / 476.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.105e-05/0.1094, allocations: 132.5 kB / 476.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.1095, allocations: 137.5 kB / 476.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.1095, allocations: 25.7 kB / 476.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.1096, allocations: 104.1 kB / 476.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.1096, allocations: 7.891 kB / 476.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.446e-05/0.1097, allocations: 29.72 kB / 476.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1098, allocations: 322.8 kB / 477.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.036e-05/0.1098, allocations: 15.98 kB / 477.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.522e-05/0.1099, allocations: 54.02 kB / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.11, allocations: 188.8 kB / 477.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.11, allocations: 0 / 477.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001924/0.1102, allocations: 156.9 kB / 477.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.54e-05/0.1103, allocations: 59.41 kB / 477.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1103, allocations: 4 kB / 477.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1103, allocations: 0 / 477.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.062e-05/0.1104, allocations: 15.92 kB / 477.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1104, allocations: 0 / 477.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.256e-05/0.1104, allocations: 7.953 kB / 477.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.1104, allocations: 4.219 kB / 477.7 MB, free: 7.055 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.0001129/0.1106, allocations: 181.2 kB / 477.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.1107, allocations: 65.58 kB / 478 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.1107, allocations: 12.31 kB / 478 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1107, allocations: 0 / 478 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1107, allocations: 3.984 kB / 478 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1108, allocations: 4 kB / 478 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.1109, allocations: 185.6 kB / 478.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1109, allocations: 3.938 kB / 478.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.562e-05/0.111, allocations: 4.406 kB / 478.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.111, allocations: 7.938 kB / 478.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.111, allocations: 8 kB / 478.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.111, allocations: 0 / 478.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.111, allocations: 0 / 478.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.1113, allocations: 263.6 kB / 478.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-05/0.1113, allocations: 89 kB / 478.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.1113, allocations: 0 / 478.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.21e-05/0.1114, allocations: 8 kB / 478.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/0.1114, allocations: 11.98 kB / 478.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-06/0.1115, allocations: 0 / 478.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.516e-05/0.1115, allocations: 103.3 kB / 478.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1115, allocations: 0 / 478.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.1118, allocations: 24 kB / 478.7 MB, free: 5.973 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.0009444/0.1128, allocations: 0.9903 MB / 479.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002241/0.113, allocations: 166.7 kB / 479.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.113, allocations: 0 / 479.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.113e-05/0.1131, allocations: 118.8 kB / 480 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1134, allocations: 35.27 kB / 480 MB, free: 4.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.1148, allocations: 1.557 MB / 481.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.115, allocations: 0.6962 MB / 482.2 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.832e-05/0.1151, allocations: 12.66 kB / 482.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.1152, allocations: 31.42 kB / 482.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1152, allocations: 0 / 482.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01907/0.1342, allocations: 3.165 MB / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.502/7.636, allocations: 15.62 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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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_ClockedBlocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)