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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007206/0.0007207, allocations: 102.6 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008861/0.0008862, allocations: 180 kB / 16.96 MB, free: 6.902 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.211/1.211, allocations: 223.3 MB / 241 MB, free: 5.359 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.1688/0.1688, allocations: 12.04 MB / 304.2 MB, free: 1.578 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002751/0.0002752, allocations: 8 kB / 368.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08523/0.08552, allocations: 53.35 MB / 421.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.00226/0.08781, allocations: 1.921 MB / 423.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000233/0.08806, allocations: 139.5 kB / 423.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.94e-05/0.08812, allocations: 0 / 423.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.08826, allocations: 15.92 kB / 423.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.621e-05/0.08832, allocations: 11.92 kB / 423.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001755/0.0885, allocations: 39.95 kB / 423.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.929e-05/0.08861, allocations: 67.84 kB / 423.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.268e-05/0.08871, allocations: 20.2 kB / 423.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.514e-05/0.08876, allocations: 31.86 kB / 424 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.126e-05/0.08882, allocations: 27.84 kB / 424 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.08885, allocations: 8 kB / 424 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.198e-05/0.0889, allocations: 23.92 kB / 424 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.09e-05/0.08895, allocations: 11.94 kB / 424 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.124e-05/0.08902, allocations: 61.44 kB / 424.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.08917, allocations: 107.6 kB / 424.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.08918, allocations: 0 / 424.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.08918, allocations: 0 / 424.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.08919, allocations: 0 / 424.2 MB, free: 1.117 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003709/0.08957, allocations: 439 kB / 424.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.08961, allocations: 8.031 kB / 424.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.08965, allocations: 42.75 kB / 424.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.282e-05/0.08969, allocations: 16.75 kB / 424.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.08986, allocations: 192.2 kB / 424.9 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.08988, allocations: 4.375 kB / 424.9 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.08991, allocations: 12.38 kB / 424.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.09027, allocations: 286.4 kB / 425.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.994e-06/0.09029, allocations: 0 / 425.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.09031, allocations: 0 / 425.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.09033, allocations: 8 kB / 425.2 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1414/0.2317, allocations: 56.92 kB / 425.2 MB, free: 39.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003401/0.2321, allocations: 303.7 kB / 425.5 MB, free: 39.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.2323, allocations: 131.1 kB / 425.7 MB, free: 39.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.052e-05/0.2323, allocations: 72.72 kB / 425.7 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.2324, allocations: 7.062 kB / 425.7 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.2324, allocations: 36.5 kB / 425.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.395e-06/0.2324, allocations: 3.375 kB / 425.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003486/0.2327, allocations: 252.8 kB / 426 MB, free: 39.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.2328, allocations: 138 kB / 426.2 MB, free: 38.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.902e-05/0.2329, allocations: 126.9 kB / 426.3 MB, free: 38.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.2329, allocations: 27.08 kB / 426.3 MB, free: 38.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/0.2329, allocations: 94.91 kB / 426.4 MB, free: 38.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.233, allocations: 15.45 kB / 426.4 MB, free: 38.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.233, allocations: 30.47 kB / 426.5 MB, free: 38.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.12e-05/0.233, allocations: 323 kB / 426.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.551e-05/0.2331, allocations: 31.33 kB / 426.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.476e-05/0.2332, allocations: 159.2 kB / 427 MB, free: 38.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.2333, allocations: 307.7 kB / 427.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2334, allocations: 0 / 427.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002569/0.2336, allocations: 255.9 kB / 427.5 MB, free: 37.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.2337, allocations: 66.16 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.2337, allocations: 4.281 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2337, allocations: 7.656 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.758e-05/0.2338, allocations: 28.39 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.2338, allocations: 4.562 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.833e-05/0.2339, allocations: 21.7 kB / 427.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.2339, allocations: 16.73 kB / 427.6 MB, free: 37.68 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.234, allocations: 204.4 kB / 427.8 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.2342, allocations: 120.3 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.761e-05/0.2342, allocations: 11.72 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.2342, allocations: 7.859 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.2342, allocations: 2.625 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.2343, allocations: 0 / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.2344, allocations: 196.2 kB / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2344, allocations: 4.656 kB / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.027e-05/0.2344, allocations: 3.422 kB / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2344, allocations: 0 / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.2344, allocations: 3.938 kB / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.2344, allocations: 8.875 kB / 428.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2344, allocations: 0 / 428.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.2347, allocations: 330.1 kB / 428.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.389e-05/0.2347, allocations: 87.92 kB / 428.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.2347, allocations: 3.953 kB / 428.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.169e-05/0.2348, allocations: 2.906 kB / 428.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.2348, allocations: 11.66 kB / 428.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.2348, allocations: 5.781 kB / 428.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.204e-05/0.2349, allocations: 94.42 kB / 428.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2349, allocations: 0.8438 kB / 428.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.2352, allocations: 30.41 kB / 428.8 MB, free: 36.86 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: 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) * Number of clocked states: 0 () * 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 (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.0007709/0.236, allocations: 1.012 MB / 429.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002324/0.2362, allocations: 244.1 kB / 430 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2362, allocations: 320 / 430 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.22e-05/0.2363, allocations: 130.5 kB / 430.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.2366, allocations: 81.41 kB / 430.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.2379, allocations: 1.949 MB / 432.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.238, allocations: 0.7135 MB / 432.9 MB, free: 33.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.088e-05/0.2381, allocations: 18.09 kB / 432.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.2381, allocations: 31.5 kB / 432.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2381, allocations: 4 kB / 432.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01112/0.2493, allocations: 2.659 MB / 435.6 MB, free: 33.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001337/0.2494, allocations: 275.7 kB / 435.9 MB, free: 32.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.841, allocations: 4 kB / 435.9 MB, free: 32.84 MB / 350.1 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/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)