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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 175.4 kB / 8.047 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.541/1.541, allocations: 221.5 MB / 230 MB, free: 7.566 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.001171/0.001171, allocations: 89.86 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.04937/0.04937, allocations: 11.91 MB / 343.6 MB, free: 3.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.689e-05/1.691e-05, allocations: 1.344 kB / 403.2 MB, free: 45.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09906/0.0991, allocations: 53.36 MB / 456.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.5325, allocations: 80.97 MB / 0.5249 GB, free: 16.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.5327, allocations: 74.66 kB / 0.525 GB, free: 16.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005457/0.5382, allocations: 1.969 MB / 0.5269 GB, free: 16.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5382, allocations: 1.469 kB / 0.5269 GB, free: 16.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.5382, allocations: 1.375 kB / 0.5269 GB, free: 16.06 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0002953/0.5385, allocations: 414.8 kB / 0.5273 GB, free: 15.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.5386, allocations: 9.156 kB / 0.5273 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.5386, allocations: 9.094 kB / 0.5274 GB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.5388, allocations: 203.1 kB / 0.5275 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.5389, allocations: 2.938 kB / 0.5276 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.5389, allocations: 4.703 kB / 0.5276 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.845e-05/0.539, allocations: 28.78 kB / 0.5276 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.5392, allocations: 142.5 kB / 0.5277 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.5393, allocations: 0 / 0.5277 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.5393, allocations: 1.25 kB / 0.5277 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.5393, allocations: 1.188 kB / 0.5277 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002835/0.5396, allocations: 265 kB / 0.528 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.5397, allocations: 145.9 kB / 0.5281 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.578e-05/0.5398, allocations: 43.83 kB / 0.5282 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.5398, allocations: 6 kB / 0.5282 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.5398, allocations: 33.25 kB / 0.5282 GB, free: 14.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.5398, allocations: 0 / 0.5282 GB, free: 14.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002207/0.5401, allocations: 85.33 kB / 0.5283 GB, free: 14.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.5401, allocations: 132.4 kB / 0.5284 GB, free: 14.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.506e-05/0.5402, allocations: 120 kB / 0.5285 GB, free: 14.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.5402, allocations: 26.83 kB / 0.5285 GB, free: 14.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.733e-05/0.5403, allocations: 100.2 kB / 0.5286 GB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.371e-05/0.5403, allocations: 16.7 kB / 0.5287 GB, free: 14.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.5403, allocations: 3.938 kB / 0.5287 GB, free: 14.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.084e-05/0.5404, allocations: 319.8 kB / 0.529 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.73e-05/0.5404, allocations: 10.47 kB / 0.529 GB, free: 14.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.056e-05/0.5405, allocations: 55.94 kB / 0.529 GB, free: 14.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.265e-05/0.5405, allocations: 14.67 kB / 0.529 GB, free: 14.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.5405, allocations: 1.375 kB / 0.529 GB, free: 14.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001397/0.5407, allocations: 95.41 kB / 0.5291 GB, free: 14.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/0.5407, allocations: 64.5 kB / 0.5292 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.5407, allocations: 1.812 kB / 0.5292 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.5407, allocations: 2.594 kB / 0.5292 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.689e-05/0.5408, allocations: 7.094 kB / 0.5292 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.5408, allocations: 6.031 kB / 0.5292 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.94e-05/0.5408, allocations: 3.906 kB / 0.5292 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.5409, allocations: 10.28 kB / 0.5292 GB, free: 13.98 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.165e-05/0.5409, allocations: 162.9 kB / 0.5294 GB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001455/0.5411, allocations: 98.88 kB / 0.5295 GB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.5411, allocations: 13.72 kB / 0.5295 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.796e-05/0.5412, allocations: 12.06 kB / 0.5295 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.5412, allocations: 3.984 kB / 0.5295 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.5412, allocations: 1.438 kB / 0.5295 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.5412, allocations: 0.5156 kB / 0.5295 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.5413, allocations: 158.9 kB / 0.5297 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.5413, allocations: 0 / 0.5297 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.5414, allocations: 4.812 kB / 0.5297 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.5414, allocations: 4.891 kB / 0.5297 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.5414, allocations: 4.438 kB / 0.5297 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5414, allocations: 2.688 kB / 0.5297 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.5414, allocations: 4 kB / 0.5297 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006329/0.542, allocations: 204.2 kB / 0.5299 GB, free: 29.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.5421, allocations: 93.69 kB / 0.53 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.5421, allocations: 5.859 kB / 0.53 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.057e-05/0.5422, allocations: 1.719 kB / 0.53 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.5422, allocations: 11.81 kB / 0.53 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.5422, allocations: 4.859 kB / 0.53 GB, free: 29.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.837e-05/0.5423, allocations: 101.9 kB / 0.5301 GB, free: 29.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5423, allocations: 0 / 0.5301 GB, free: 29.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002869/0.5426, allocations: 29.42 kB / 0.5301 GB, free: 29.23 MB / 378.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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * 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 (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.000944/0.5436, allocations: 0.9918 MB / 0.5311 GB, free: 28.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001963/0.5438, allocations: 159.3 kB / 0.5312 GB, free: 28.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5438, allocations: 0.9062 kB / 0.5312 GB, free: 28.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.087e-05/0.5439, allocations: 121.6 kB / 0.5313 GB, free: 28.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.5441, allocations: 19 kB / 0.5314 GB, free: 28.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.5452, allocations: 386.4 kB / 0.5317 GB, free: 28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.5454, allocations: 0.7031 MB / 0.5324 GB, free: 27.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.293e-05/0.5455, allocations: 18.7 kB / 0.5324 GB, free: 27.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.052e-05/0.5456, allocations: 23.53 kB / 0.5325 GB, free: 27.28 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5456, allocations: 1.844 kB / 0.5325 GB, free: 27.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.5689, allocations: 2.431 MB / 0.5348 GB, free: 27.03 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/0.5691, allocations: 213.5 kB / 0.535 GB, free: 26.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/2.214, allocations: 0 / 0.535 GB, free: 26.75 MB / 378.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)