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.001519/0.001518, allocations: 105.9 kB / 16.31 MB, free: 5.879 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.001819/0.00182, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.348/1.348, allocations: 222.9 MB / 240.9 MB, free: 15.16 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.05631/0.05631, allocations: 12.05 MB / 303.1 MB, free: 3.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 59.91 kB / 366.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.196, allocations: 52.33 MB / 418.9 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.004089/0.2001, allocations: 2.255 MB / 421.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003069/0.2004, allocations: 159.5 kB / 421.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.954e-05/0.2006, allocations: 7.312 kB / 421.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.2007, allocations: 19.84 kB / 421.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.2009, allocations: 39.83 kB / 421.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.2011, allocations: 51.88 kB / 421.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.2012, allocations: 75.78 kB / 421.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.985e-05/0.2013, allocations: 16.22 kB / 421.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.846e-05/0.2014, allocations: 35.84 kB / 421.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.2014, allocations: 27.86 kB / 421.6 MB, free: 18.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.2015, allocations: 15.94 kB / 421.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.2016, allocations: 135.9 kB / 421.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.2017, allocations: 11.94 kB / 421.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.2017, allocations: 35.8 kB / 421.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.202, allocations: 139.6 kB / 421.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.202, allocations: 0 / 421.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.202, allocations: 0 / 421.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.202, allocations: 0 / 421.9 MB, free: 18.04 MB / 302.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.0004134/0.2024, allocations: 441 kB / 422.3 MB, free: 17.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.2025, allocations: 11.97 kB / 422.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.114e-05/0.2025, allocations: 42.75 kB / 422.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.2026, allocations: 12.75 kB / 422.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.2027, allocations: 208.1 kB / 422.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.2028, allocations: 8.312 kB / 422.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.2028, allocations: 4.375 kB / 422.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.2031, allocations: 153.5 kB / 422.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2031, allocations: 7.938 kB / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.2031, allocations: 4 kB / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.2031, allocations: 3.984 kB / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.896e-05/0.2032, allocations: 27.98 kB / 422.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002563/0.2034, allocations: 297.6 kB / 423.1 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.2036, allocations: 154.2 kB / 423.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.758e-05/0.2037, allocations: 33.78 kB / 423.3 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.2037, allocations: 8 kB / 423.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.419e-05/0.2037, allocations: 34.5 kB / 423.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2037, allocations: 0 / 423.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002768/0.204, allocations: 165 kB / 423.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.2041, allocations: 136.5 kB / 423.6 MB, free: 16.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.625e-05/0.2041, allocations: 133.2 kB / 423.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.2042, allocations: 25.7 kB / 423.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.2042, allocations: 104 kB / 423.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.278e-05/0.2042, allocations: 15.84 kB / 423.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.2043, allocations: 25.7 kB / 423.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.851e-05/0.2043, allocations: 322.8 kB / 424.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.423e-05/0.2043, allocations: 15.98 kB / 424.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-05/0.2044, allocations: 54.02 kB / 424.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.931e-05/0.2045, allocations: 184.7 kB / 424.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2045, allocations: 3.938 kB / 424.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001505/0.2047, allocations: 152.9 kB / 424.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.2047, allocations: 63.62 kB / 424.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.2047, allocations: 4 kB / 424.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2047, allocations: 3.984 kB / 424.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.504e-05/0.2048, allocations: 11.94 kB / 424.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2048, allocations: 96 / 424.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.863e-05/0.2048, allocations: 7.938 kB / 424.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.2049, allocations: 8 kB / 424.7 MB, free: 14.8 MB / 302.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 7.979e-05/0.2049, allocations: 181.2 kB / 424.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.826e-05/0.205, allocations: 53.61 kB / 425 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.407e-05/0.2051, allocations: 24.55 kB / 425 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2051, allocations: 0 / 425 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2051, allocations: 4 kB / 425 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2051, allocations: 4 kB / 425 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.2052, allocations: 189.4 kB / 425.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2052, allocations: 0 / 425.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.285e-05/0.2053, allocations: 8 kB / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2053, allocations: 0 / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.2053, allocations: 4 kB / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.2053, allocations: 0 / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.2053, allocations: 0 / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/0.2055, allocations: 255.8 kB / 425.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/0.2055, allocations: 96.94 kB / 425.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.2055, allocations: 4 kB / 425.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.468e-05/0.2056, allocations: 0 / 425.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.754e-05/0.2056, allocations: 7.984 kB / 425.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.2056, allocations: 8 kB / 425.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.103e-05/0.2057, allocations: 99.27 kB / 425.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.2057, allocations: 0 / 425.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000269/0.206, allocations: 27.94 kB / 425.7 MB, free: 13.72 MB / 302.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.0007549/0.2067, allocations: 0.9942 MB / 426.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001791/0.2069, allocations: 170.7 kB / 426.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2069, allocations: 0 / 426.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.66e-05/0.207, allocations: 122.8 kB / 427 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2073, allocations: 26.28 kB / 427 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009902/0.2083, allocations: 1.558 MB / 428.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.05e-05/0.2084, allocations: 0.693 MB / 429.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.2085, allocations: 20.59 kB / 429.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.206e-05/0.2085, allocations: 23.44 kB / 429.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2085, allocations: 0 / 429.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/0.2247, allocations: 3.104 MB / 432.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.575, allocations: 17.05 kB / 432.4 MB, free: 6.961 MB / 302.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)