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.001448/0.001448, allocations: 106.8 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.001622/0.001622, allocations: 192.1 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.322/1.322, allocations: 222.9 MB / 241.1 MB, free: 15.09 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.05727/0.05727, allocations: 12.05 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 67.89 kB / 419.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08682, allocations: 52.32 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003645/0.0905, allocations: 2.251 MB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003503/0.09088, allocations: 167.4 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.459e-05/0.09097, allocations: 4 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.09115, allocations: 23.86 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.09131, allocations: 39.81 kB / 474.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001855/0.0915, allocations: 51.88 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.09165, allocations: 83.77 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.605e-05/0.09175, allocations: 20.2 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.061e-05/0.09181, allocations: 31.86 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.873e-05/0.09187, allocations: 35.83 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.09189, allocations: 8 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.09206, allocations: 127.9 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.415e-05/0.0921, allocations: 19.86 kB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.796e-05/0.09215, allocations: 35.8 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.0924, allocations: 139.8 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.09242, allocations: 7.984 kB / 474.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09243, allocations: 4 kB / 474.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.09243, allocations: 0 / 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.0004702/0.09291, allocations: 438.4 kB / 475.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.09295, allocations: 11.97 kB / 475.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.582e-05/0.09299, allocations: 42.73 kB / 475.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.856e-05/0.09304, allocations: 8.891 kB / 475.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.0933, allocations: 204.2 kB / 475.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.09332, allocations: 8.375 kB / 475.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.09334, allocations: 8.375 kB / 475.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.09365, allocations: 164.2 kB / 475.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.09367, allocations: 3.938 kB / 475.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.09368, allocations: 0 / 475.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.09369, allocations: 4 kB / 475.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.941e-05/0.09378, allocations: 31.98 kB / 475.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003421/0.09413, allocations: 297.6 kB / 476.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.09432, allocations: 154.2 kB / 476.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.009e-05/0.0944, allocations: 41.78 kB / 476.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.09443, allocations: 0 / 476.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.09446, allocations: 38.5 kB / 476.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.09446, allocations: 0 / 476.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003208/0.09479, allocations: 161 kB / 476.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.09487, allocations: 140.5 kB / 476.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.09498, allocations: 130.1 kB / 476.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.09501, allocations: 33.73 kB / 476.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.574e-05/0.09507, allocations: 92.09 kB / 476.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.09509, allocations: 15.88 kB / 476.9 MB, free: 8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.477e-05/0.09514, allocations: 29.72 kB / 476.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.861e-05/0.09525, allocations: 326.8 kB / 477.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.09529, allocations: 12 kB / 477.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.483e-05/0.09535, allocations: 54 kB / 477.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.09549, allocations: 180.7 kB / 477.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.09551, allocations: 4 kB / 477.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001998/0.09571, allocations: 156.9 kB / 477.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.519e-05/0.09576, allocations: 59.5 kB / 477.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.09578, allocations: 3.938 kB / 477.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.0958, allocations: 4 kB / 477.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.352e-05/0.09584, allocations: 7.938 kB / 477.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.09586, allocations: 4 kB / 477.7 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.542e-05/0.09591, allocations: 20.16 kB / 477.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.09592, allocations: 4 kB / 477.7 MB, free: 7.039 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.000105/0.09603, allocations: 173.2 kB / 477.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.09615, allocations: 65.58 kB / 478 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.364e-05/0.09619, allocations: 8.312 kB / 478 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.0962, allocations: 4.312 kB / 478 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.09621, allocations: 0 / 478 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.09622, allocations: 144 / 478 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.09639, allocations: 189.6 kB / 478.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.0964, allocations: 7.922 kB / 478.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.631e-05/0.09643, allocations: 11.98 kB / 478.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.09644, allocations: 4 kB / 478.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.09646, allocations: 0 / 478.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.09646, allocations: 0 / 478.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.09647, allocations: 4 kB / 478.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.09672, allocations: 259.6 kB / 478.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.09678, allocations: 85 kB / 478.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.09681, allocations: 8 kB / 478.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.447e-05/0.09687, allocations: 8 kB / 478.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.472e-05/0.0969, allocations: 0 / 478.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.09692, allocations: 4 kB / 478.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.034e-05/0.09698, allocations: 105.4 kB / 478.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09699, allocations: 0 / 478.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.09727, allocations: 28 kB / 478.7 MB, free: 5.969 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.0009479/0.09822, allocations: 0.9864 MB / 479.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002511/0.09848, allocations: 166.7 kB / 479.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.0985, allocations: 448 / 479.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.729e-05/0.09859, allocations: 126.8 kB / 480 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.09888, allocations: 31.95 kB / 480 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.1004, allocations: 1.556 MB / 481.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.1007, allocations: 0.6962 MB / 482.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.389e-05/0.1007, allocations: 24.53 kB / 482.3 MB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.33e-05/0.1008, allocations: 19.44 kB / 482.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1008, allocations: 0 / 482.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.1199, allocations: 3.174 MB / 485.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/7.778, allocations: 15.69 kB / 485.5 MB, free: 15.15 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)