Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_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.001963/0.001964, allocations: 176.7 kB / 8.051 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.545/1.545, allocations: 221.5 MB / 230 MB, free: 7.555 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.000802/0.0008019, allocations: 99.16 kB / 280.9 MB, free: 5.309 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.05053/0.05053, allocations: 11.91 MB / 343.6 MB, free: 3.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.762e-05, allocations: 2.281 kB / 403.2 MB, free: 45.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 53.37 MB / 456.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.5303, allocations: 80.78 MB / 0.5248 GB, free: 16.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.5306, allocations: 76.73 kB / 0.5248 GB, free: 16.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004901/0.5355, allocations: 1.729 MB / 0.5265 GB, free: 16.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.5356, allocations: 0.5156 kB / 0.5265 GB, free: 16.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.5356, allocations: 2.688 kB / 0.5265 GB, free: 16.62 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004454/0.536, allocations: 422.4 kB / 0.5269 GB, free: 16.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.159e-05/0.5361, allocations: 10.62 kB / 0.5269 GB, free: 16.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.721e-05/0.5362, allocations: 12.94 kB / 0.527 GB, free: 16.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.5364, allocations: 194.7 kB / 0.5271 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.5365, allocations: 10.69 kB / 0.5272 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.5365, allocations: 9.906 kB / 0.5272 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001686/0.5367, allocations: 54.23 kB / 0.5272 GB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004143/0.5371, allocations: 249 kB / 0.5275 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.5371, allocations: 0 / 0.5275 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.5371, allocations: 2.109 kB / 0.5275 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.5372, allocations: 5.625 kB / 0.5275 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003264/0.5375, allocations: 262.5 kB / 0.5277 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.5377, allocations: 130.9 kB / 0.5278 GB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.5378, allocations: 64.33 kB / 0.5279 GB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.5378, allocations: 5.969 kB / 0.5279 GB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.5379, allocations: 36.19 kB / 0.5279 GB, free: 15.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.5379, allocations: 0 / 0.5279 GB, free: 15.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003287/0.5382, allocations: 140.2 kB / 0.5281 GB, free: 15.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.5383, allocations: 139.4 kB / 0.5282 GB, free: 15.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.437e-05/0.5384, allocations: 112.2 kB / 0.5283 GB, free: 15.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.5384, allocations: 26.92 kB / 0.5283 GB, free: 15.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.327e-05/0.5384, allocations: 96.17 kB / 0.5284 GB, free: 15.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.5385, allocations: 15.86 kB / 0.5284 GB, free: 15.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.5385, allocations: 0 / 0.5284 GB, free: 15.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.5385, allocations: 325.2 kB / 0.5288 GB, free: 14.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.756e-05/0.5386, allocations: 27.41 kB / 0.5288 GB, free: 14.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.182e-05/0.5387, allocations: 151.3 kB / 0.5289 GB, free: 14.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.625e-05/0.5388, allocations: 47.94 kB / 0.529 GB, free: 14.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.5388, allocations: 3.625 kB / 0.529 GB, free: 14.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002564/0.5391, allocations: 173.4 kB / 0.5291 GB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.5391, allocations: 61.09 kB / 0.5292 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.5391, allocations: 4.875 kB / 0.5292 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.5391, allocations: 6.469 kB / 0.5292 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.5393, allocations: 30.39 kB / 0.5292 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.5393, allocations: 7.922 kB / 0.5292 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.821e-05/0.5394, allocations: 18.88 kB / 0.5293 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.5394, allocations: 9.406 kB / 0.5293 GB, free: 14.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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 0.0001111/0.5395, allocations: 182.3 kB / 0.5294 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000237/0.5397, allocations: 156.2 kB / 0.5296 GB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.5398, allocations: 10.69 kB / 0.5296 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.5398, allocations: 10.88 kB / 0.5296 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.5398, allocations: 7.344 kB / 0.5296 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/0.5399, allocations: 5.219 kB / 0.5296 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.5399, allocations: 0.5156 kB / 0.5296 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.54, allocations: 162.7 kB / 0.5298 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.54, allocations: 1.562 kB / 0.5298 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.394e-05/0.5401, allocations: 5.844 kB / 0.5298 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.5401, allocations: 1.922 kB / 0.5298 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.5401, allocations: 1.797 kB / 0.5298 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.5401, allocations: 2.031 kB / 0.5298 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5401, allocations: 0.6094 kB / 0.5298 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.5404, allocations: 270.6 kB / 0.5301 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.5404, allocations: 85.05 kB / 0.5301 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/0.5404, allocations: 3.734 kB / 0.5301 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.297e-05/0.5405, allocations: 1.594 kB / 0.5301 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.769e-05/0.5405, allocations: 8.281 kB / 0.5301 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.5406, allocations: 3.5 kB / 0.5302 GB, free: 13.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.492e-05/0.5406, allocations: 90.58 kB / 0.5302 GB, free: 13.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.704e-06/0.5406, allocations: 4.188 kB / 0.5302 GB, free: 13.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003017/0.5409, allocations: 40.33 kB / 0.5303 GB, free: 13.7 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,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: 1 (synchronizeRealtime.initialized) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * 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.001539/0.5425, allocations: 1.021 MB / 0.5313 GB, free: 28.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002714/0.5427, allocations: 223 kB / 0.5315 GB, free: 28.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5428, allocations: 4.125 kB / 0.5315 GB, free: 28.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.525e-05/0.5428, allocations: 123.1 kB / 0.5316 GB, free: 28.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.5431, allocations: 69.09 kB / 0.5317 GB, free: 28.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.5444, allocations: 432.8 kB / 0.5321 GB, free: 28.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.5448, allocations: 0.7202 MB / 0.5328 GB, free: 27.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.094e-05/0.5449, allocations: 16.69 kB / 0.5328 GB, free: 27.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.5449, allocations: 34.14 kB / 0.5328 GB, free: 27.73 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5449, allocations: 0 / 0.5328 GB, free: 27.73 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.5676, allocations: 2.355 MB / 0.5351 GB, free: 27.49 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.5678, allocations: 213.1 kB / 0.5353 GB, free: 27.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.207, allocations: 3.625 kB / 0.5353 GB, free: 27.21 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)