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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 177.6 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 221.5 MB / 230 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008965/0.0008965, allocations: 89.66 kB / 280.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05327/0.05327, allocations: 11.92 MB / 343.6 MB, free: 3.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.289e-05/2.288e-05, allocations: 3.047 kB / 403.2 MB, free: 45.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 53.36 MB / 456.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3712/0.4847, allocations: 81.47 MB / 0.5254 GB, free: 16.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.4849, allocations: 73.73 kB / 0.5255 GB, free: 16.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007384/0.4923, allocations: 2.649 MB / 0.5281 GB, free: 16.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4923, allocations: 4 kB / 0.5281 GB, free: 16.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.4924, allocations: 7.562 kB / 0.5281 GB, free: 16.46 MB / 362.7 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.000485/0.4929, allocations: 408.8 kB / 0.5285 GB, free: 16.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.4929, allocations: 9.969 kB / 0.5285 GB, free: 16.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.807e-05/0.493, allocations: 17.56 kB / 0.5285 GB, free: 16.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.4933, allocations: 235.2 kB / 0.5287 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.4933, allocations: 4.391 kB / 0.5287 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.068e-05/0.4934, allocations: 12.36 kB / 0.5288 GB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001783/0.4935, allocations: 76.09 kB / 0.5288 GB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.4938, allocations: 134.3 kB / 0.529 GB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.4938, allocations: 0 / 0.529 GB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.4938, allocations: 2.344 kB / 0.529 GB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.4938, allocations: 3.188 kB / 0.529 GB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000646/0.4945, allocations: 434.7 kB / 0.5294 GB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.4946, allocations: 70.02 kB / 0.5294 GB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.724e-05/0.4947, allocations: 48.11 kB / 0.5295 GB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.4947, allocations: 0 / 0.5295 GB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.4949, allocations: 92.86 kB / 0.5296 GB, free: 15.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.4949, allocations: 0 / 0.5296 GB, free: 15.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002351/0.4951, allocations: 95.86 kB / 0.5297 GB, free: 15.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.4952, allocations: 79.44 kB / 0.5298 GB, free: 15.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.4953, allocations: 143.3 kB / 0.5299 GB, free: 15.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.4953, allocations: 29.7 kB / 0.5299 GB, free: 15.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.4954, allocations: 128 kB / 0.53 GB, free: 15.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.4954, allocations: 26.25 kB / 0.5301 GB, free: 15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-06/0.4954, allocations: 0 / 0.5301 GB, free: 15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.044e-05/0.4955, allocations: 325.2 kB / 0.5304 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/0.4956, allocations: 24.61 kB / 0.5304 GB, free: 14.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.914e-05/0.4956, allocations: 56.11 kB / 0.5304 GB, free: 14.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.296e-05/0.4957, allocations: 30.7 kB / 0.5305 GB, free: 14.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4957, allocations: 0 / 0.5305 GB, free: 14.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001648/0.4959, allocations: 121.1 kB / 0.5306 GB, free: 14.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.4959, allocations: 2.594 kB / 0.5306 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.4959, allocations: 4.25 kB / 0.5306 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.4959, allocations: 0 / 0.5306 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.893e-05/0.496, allocations: 15.19 kB / 0.5306 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.496, allocations: 0.9062 kB / 0.5306 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.713e-05/0.4961, allocations: 20.44 kB / 0.5306 GB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.4961, allocations: 3.188 kB / 0.5306 GB, free: 14.58 MB / 362.7 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.keyState,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.715e-05/0.4962, allocations: 109.6 kB / 0.5307 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001415/0.4963, allocations: 99.55 kB / 0.5308 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.4964, allocations: 12.08 kB / 0.5308 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.615e-05/0.4964, allocations: 14.7 kB / 0.5309 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.4964, allocations: 0.5625 kB / 0.5309 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.892e-06/0.4964, allocations: 1.344 kB / 0.5309 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.4964, allocations: 0.6094 kB / 0.5309 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.4966, allocations: 194.8 kB / 0.5311 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.4967, allocations: 1.953 kB / 0.5311 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.869e-05/0.4967, allocations: 5.203 kB / 0.5311 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.4967, allocations: 7.891 kB / 0.5311 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.4967, allocations: 2.094 kB / 0.5311 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4967, allocations: 1.5 kB / 0.5311 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.4967, allocations: 0.6094 kB / 0.5311 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.4969, allocations: 148.9 kB / 0.5312 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.542e-05/0.497, allocations: 90.66 kB / 0.5313 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.497, allocations: 2.125 kB / 0.5313 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.904e-05/0.497, allocations: 1.031 kB / 0.5313 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-05/0.4971, allocations: 7.578 kB / 0.5313 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.4971, allocations: 4.078 kB / 0.5313 GB, free: 14.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.99e-05/0.4972, allocations: 110 kB / 0.5314 GB, free: 13.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4972, allocations: 0 / 0.5314 GB, free: 13.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002875/0.4975, allocations: 38.91 kB / 0.5315 GB, free: 13.96 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001622/0.4991, allocations: 0.8836 MB / 0.5323 GB, free: 29.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001912/0.4993, allocations: 96.84 kB / 0.5324 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4993, allocations: 0 / 0.5324 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.955e-05/0.4994, allocations: 62.47 kB / 0.5325 GB, free: 29.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.4995, allocations: 7.953 kB / 0.5325 GB, free: 29.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006057/0.5002, allocations: 259.9 kB / 0.5327 GB, free: 28.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.5005, allocations: 0.7299 MB / 0.5334 GB, free: 28.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.516e-05/0.5006, allocations: 14.52 kB / 0.5335 GB, free: 28.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.03e-05/0.5007, allocations: 46.97 kB / 0.5335 GB, free: 28.27 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5007, allocations: 4 kB / 0.5335 GB, free: 28.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.5219, allocations: 2.638 MB / 0.5361 GB, free: 28.03 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/0.5221, allocations: 192.6 kB / 0.5363 GB, free: 27.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/2.228, allocations: 1.156 kB / 0.5363 GB, free: 27.84 MB / 378.7 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/linux/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)