Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard",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.001001/0.001001, allocations: 177 kB / 8.048 MB, free: 1.023 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.453/1.453, allocations: 221.5 MB / 230 MB, free: 7.527 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.0009084/0.0009082, allocations: 99.25 kB / 280.9 MB, free: 5.262 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.05135/0.05135, allocations: 11.91 MB / 343.6 MB, free: 3.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.692e-05/1.695e-05, allocations: 2.156 kB / 403.2 MB, free: 45.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 53.37 MB / 456.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3717/0.4722, allocations: 81.31 MB / 0.5253 GB, free: 16.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.4725, allocations: 69.47 kB / 0.5254 GB, free: 16.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006187/0.4787, allocations: 2.415 MB / 0.5277 GB, free: 16.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4787, allocations: 0 / 0.5277 GB, free: 16.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.4787, allocations: 4.5 kB / 0.5277 GB, free: 16.49 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0003554/0.4791, allocations: 429.4 kB / 0.5281 GB, free: 16.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4791, allocations: 14.33 kB / 0.5281 GB, free: 16.1 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.879e-05/0.4792, allocations: 16.91 kB / 0.5282 GB, free: 16.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.4794, allocations: 231 kB / 0.5284 GB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.4794, allocations: 7.578 kB / 0.5284 GB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.4795, allocations: 8.156 kB / 0.5284 GB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002035/0.4797, allocations: 105.3 kB / 0.5285 GB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.4799, allocations: 170.8 kB / 0.5287 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.4799, allocations: 0 / 0.5287 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.48, allocations: 4.875 kB / 0.5287 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.48, allocations: 3.875 kB / 0.5287 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000597/0.4806, allocations: 439.3 kB / 0.5291 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.4807, allocations: 120.8 kB / 0.5292 GB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.486e-05/0.4808, allocations: 75.8 kB / 0.5293 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.4809, allocations: 0 / 0.5293 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001632/0.481, allocations: 124.9 kB / 0.5294 GB, free: 15.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.173e-06/0.481, allocations: 5.281 kB / 0.5294 GB, free: 15.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003288/0.4814, allocations: 178.4 kB / 0.5296 GB, free: 15.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.4814, allocations: 90.61 kB / 0.5297 GB, free: 15.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.4815, allocations: 127.1 kB / 0.5298 GB, free: 15.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.4816, allocations: 34.53 kB / 0.5298 GB, free: 15.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.786e-05/0.4816, allocations: 126.9 kB / 0.5299 GB, free: 15.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.4817, allocations: 54.42 kB / 0.53 GB, free: 15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-06/0.4817, allocations: 0 / 0.53 GB, free: 15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.866e-05/0.4818, allocations: 337.9 kB / 0.5303 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.923e-05/0.4818, allocations: 64.41 kB / 0.5304 GB, free: 14.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.482, allocations: 153.4 kB / 0.5305 GB, free: 14.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.4821, allocations: 90.3 kB / 0.5306 GB, free: 14.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4821, allocations: 1.031 kB / 0.5306 GB, free: 14.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003286/0.4825, allocations: 252.9 kB / 0.5308 GB, free: 14.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.4825, allocations: 6.906 kB / 0.5308 GB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.4825, allocations: 4.781 kB / 0.5309 GB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4825, allocations: 5.156 kB / 0.5309 GB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.4827, allocations: 29.17 kB / 0.5309 GB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.4827, allocations: 10.12 kB / 0.5309 GB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.977e-05/0.4828, allocations: 20.06 kB / 0.5309 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.4828, allocations: 14.03 kB / 0.5309 GB, free: 14.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[7],keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.keySpace,$PRE.keyboardInput.KeyCode[6],keyboardInput.KeyCode[6],keyboardInput.keyReturn,$PRE.keyboardInput.KeyCode[5],keyboardInput.KeyCode[5],keyboardInput.keyLeft,$PRE.keyboardInput.KeyCode[4],keyboardInput.KeyCode[4],keyboardInput.keyRight,$PRE.keyboardInput.KeyCode[3],keyboardInput.KeyCode[3],keyboardInput.keyDown,$PRE.keyboardInput.KeyCode[2],keyboardInput.KeyCode[2],keyboardInput.keyUp,$PRE.keyboardInput.KeyCode[1],keyboardInput.KeyCode[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 9.22e-05/0.4829, allocations: 134.3 kB / 0.5311 GB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002159/0.4831, allocations: 183.4 kB / 0.5312 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.4831, allocations: 14.14 kB / 0.5312 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.789e-05/0.4832, allocations: 16.62 kB / 0.5313 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4832, allocations: 3.25 kB / 0.5313 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.4832, allocations: 0.6094 kB / 0.5313 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4832, allocations: 4.828 kB / 0.5313 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.4834, allocations: 193.9 kB / 0.5315 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.4834, allocations: 6.531 kB / 0.5315 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.852e-05/0.4834, allocations: 9.25 kB / 0.5315 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.4834, allocations: 6.125 kB / 0.5315 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.4835, allocations: 0 / 0.5315 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4835, allocations: 2.484 kB / 0.5315 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4835, allocations: 0 / 0.5315 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.4837, allocations: 231.3 kB / 0.5317 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.264e-05/0.4838, allocations: 93.98 kB / 0.5318 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.4838, allocations: 5.484 kB / 0.5318 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.725e-05/0.4838, allocations: 5.734 kB / 0.5318 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.4839, allocations: 10.61 kB / 0.5318 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.4839, allocations: 6.688 kB / 0.5318 GB, free: 13.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.58e-05/0.484, allocations: 102 kB / 0.5319 GB, free: 13.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.484, allocations: 0 / 0.5319 GB, free: 13.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002722/0.4842, allocations: 42.95 kB / 0.532 GB, free: 13.82 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: 17 ($whenCondition1,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.001344/0.4856, allocations: 0.9288 MB / 0.5329 GB, free: 29.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.4859, allocations: 203.3 kB / 0.5331 GB, free: 29.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4859, allocations: 0 / 0.5331 GB, free: 29.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.622e-05/0.486, allocations: 95.86 kB / 0.5331 GB, free: 29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.4862, allocations: 7.219 kB / 0.5332 GB, free: 29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006134/0.4868, allocations: 302.2 kB / 0.5334 GB, free: 28.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.4871, allocations: 0.7459 MB / 0.5342 GB, free: 28.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.209e-05/0.4872, allocations: 20 kB / 0.5342 GB, free: 28.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.032e-05/0.4873, allocations: 58.2 kB / 0.5342 GB, free: 28.12 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4873, allocations: 0 / 0.5342 GB, free: 28.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.5105, allocations: 2.587 MB / 0.5368 GB, free: 27.9 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/0.5108, allocations: 194.5 kB / 0.537 GB, free: 27.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.611/2.122, allocations: 0 / 0.537 GB, free: 27.71 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)