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.003813/0.003813, allocations: 93.28 kB / 15.91 MB, free: 6.277 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.0009595/0.0009596, allocations: 195.3 kB / 16.83 MB, free: 6.191 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.237/1.237, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.17/0.17, allocations: 12.02 MB / 302.7 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 55.91 kB / 365.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09356/0.09488, allocations: 52.33 MB / 418.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004518/0.09944, allocations: 2.692 MB / 420.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007062/0.1002, allocations: 358.8 kB / 421.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.1004, allocations: 7.938 kB / 421.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002712/0.1007, allocations: 35.78 kB / 421.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.1008, allocations: 39.81 kB / 421.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.1011, allocations: 79.78 kB / 421.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.1013, allocations: 140.1 kB / 421.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.1015, allocations: 81.5 kB / 421.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.726e-05/0.1016, allocations: 55.77 kB / 421.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.509e-05/0.1017, allocations: 55.7 kB / 421.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.1017, allocations: 11.94 kB / 421.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.1019, allocations: 135.8 kB / 421.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.277e-05/0.102, allocations: 35.91 kB / 421.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.736e-05/0.1021, allocations: 67.59 kB / 422 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/0.1024, allocations: 223.5 kB / 422.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1024, allocations: 0 / 422.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1024, allocations: 0 / 422.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.1024, allocations: 0 / 422.2 MB, free: 1.59 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.0006847/0.1031, allocations: 455.1 kB / 422.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.1032, allocations: 8.031 kB / 422.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.685e-05/0.1032, allocations: 50.73 kB / 422.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.1033, allocations: 16.75 kB / 422.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.1035, allocations: 224 kB / 422.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.1035, allocations: 8.609 kB / 422.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.1036, allocations: 12.38 kB / 423 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.1039, allocations: 160.8 kB / 423.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.1039, allocations: 3.938 kB / 423.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.1039, allocations: 4 kB / 423.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.1039, allocations: 4 kB / 423.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.1041, allocations: 84.12 kB / 423.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1632/0.2672, allocations: 474.8 kB / 423.7 MB, free: 41.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.2675, allocations: 73.62 kB / 423.7 MB, free: 41.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.041e-05/0.2676, allocations: 44.25 kB / 423.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.2676, allocations: 1.906 kB / 423.8 MB, free: 41.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.2678, allocations: 91.98 kB / 423.9 MB, free: 41.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.2678, allocations: 1.219 kB / 423.9 MB, free: 41.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003029/0.2682, allocations: 126.1 kB / 424 MB, free: 41.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.2682, allocations: 79.92 kB / 424.1 MB, free: 41.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.2684, allocations: 162.2 kB / 424.2 MB, free: 41.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.2684, allocations: 27.2 kB / 424.3 MB, free: 41.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.193e-05/0.2685, allocations: 134.8 kB / 424.4 MB, free: 41.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.2685, allocations: 27 kB / 424.4 MB, free: 41.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.341e-05/0.2686, allocations: 33.14 kB / 424.5 MB, free: 41.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.392e-05/0.2686, allocations: 323.8 kB / 424.8 MB, free: 40.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.775e-05/0.2687, allocations: 32.02 kB / 424.8 MB, free: 40.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.873e-05/0.2687, allocations: 53.77 kB / 424.9 MB, free: 40.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.2689, allocations: 88.77 kB / 424.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2689, allocations: 0 / 424.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000179/0.269, allocations: 130.4 kB / 425.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2691, allocations: 5.094 kB / 425.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.2691, allocations: 0.5625 kB / 425.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2691, allocations: 2.094 kB / 425.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.104e-05/0.2692, allocations: 10.72 kB / 425.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2692, allocations: 2.594 kB / 425.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.498e-05/0.2692, allocations: 5.078 kB / 425.1 MB, free: 40.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.2693, allocations: 6.906 kB / 425.1 MB, free: 40.85 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 9.39e-05/0.2694, allocations: 149 kB / 425.2 MB, free: 40.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.2694, allocations: 11.59 kB / 425.3 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.029e-05/0.2694, allocations: 13.75 kB / 425.3 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2694, allocations: 1.281 kB / 425.3 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2695, allocations: 2.156 kB / 425.3 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2695, allocations: 7.844 kB / 425.3 MB, free: 40.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.2696, allocations: 223.6 kB / 425.5 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.2696, allocations: 5 kB / 425.5 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.516e-05/0.2697, allocations: 5.516 kB / 425.5 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2697, allocations: 2.5 kB / 425.5 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.2697, allocations: 2.141 kB / 425.5 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2697, allocations: 1 kB / 425.5 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2697, allocations: 3.641 kB / 425.5 MB, free: 40.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.2699, allocations: 138.2 kB / 425.7 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.728e-05/0.2699, allocations: 96.02 kB / 425.7 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.2699, allocations: 0.75 kB / 425.8 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.729e-05/0.27, allocations: 3.812 kB / 425.8 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.27, allocations: 14.06 kB / 425.8 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.27, allocations: 2.578 kB / 425.8 MB, free: 40.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.066e-05/0.2701, allocations: 117.4 kB / 425.9 MB, free: 40.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2701, allocations: 0 / 425.9 MB, free: 40.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002529/0.2704, allocations: 36.97 kB / 425.9 MB, free: 40.27 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.0007136/0.2711, allocations: 0.8141 MB / 426.7 MB, free: 39.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001829/0.2713, allocations: 95.02 kB / 426.8 MB, free: 39.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2713, allocations: 0 / 426.8 MB, free: 39.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.611e-05/0.2713, allocations: 65.44 kB / 426.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.2715, allocations: 16.94 kB / 426.9 MB, free: 39.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.2729, allocations: 1.691 MB / 428.6 MB, free: 38.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.2731, allocations: 0.7249 MB / 429.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.846e-05/0.2731, allocations: 12.38 kB / 429.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.352e-05/0.2732, allocations: 51.56 kB / 429.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2732, allocations: 0 / 429.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2943/0.5675, allocations: 3.187 MB / 432.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/0.5677, allocations: 274 kB / 432.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.754, allocations: 0 / 432.8 MB, free: 36.86 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)