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.0006737/0.0006736, allocations: 103 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.0006958/0.0006957, allocations: 180.1 kB / 16.96 MB, free: 6.879 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.238/1.238, allocations: 223.3 MB / 241 MB, free: 5.352 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.1684/0.1684, allocations: 12.04 MB / 304.2 MB, free: 1.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.0002751, allocations: 8 kB / 368.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08877/0.08906, allocations: 53.34 MB / 421.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002273/0.09137, allocations: 1.925 MB / 423.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002219/0.0916, allocations: 123.6 kB / 423.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.097e-05/0.09167, allocations: 4 kB / 423.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.09182, allocations: 23.86 kB / 423.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.554e-05/0.09189, allocations: 11.92 kB / 423.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.09207, allocations: 47.89 kB / 423.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.09218, allocations: 67.78 kB / 423.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.118e-05/0.09228, allocations: 20.22 kB / 424 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.638e-05/0.09233, allocations: 23.86 kB / 424 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.561e-05/0.0924, allocations: 31.84 kB / 424 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.09242, allocations: 0 / 424 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.412e-05/0.09248, allocations: 19.98 kB / 424 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.666e-05/0.09254, allocations: 15.94 kB / 424 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.09261, allocations: 65.44 kB / 424.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.09276, allocations: 103.7 kB / 424.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.09277, allocations: 4 kB / 424.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09278, allocations: 3.938 kB / 424.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.09278, allocations: 0 / 424.2 MB, free: 1.094 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.0003536/0.09314, allocations: 435 kB / 424.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.09318, allocations: 8.031 kB / 424.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.09323, allocations: 38.75 kB / 424.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.09327, allocations: 16.75 kB / 424.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.09346, allocations: 196.2 kB / 424.9 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.09348, allocations: 16.25 kB / 424.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.0935, allocations: 16.36 kB / 424.9 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1515/0.245, allocations: 267.2 kB / 425.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.245, allocations: 0.9688 kB / 425.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.2451, allocations: 6.094 kB / 425.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.017e-05/0.2451, allocations: 6.859 kB / 425.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.2452, allocations: 61.42 kB / 425.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003175/0.2456, allocations: 304 kB / 425.6 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.2457, allocations: 131 kB / 425.7 MB, free: 39.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.906e-05/0.2458, allocations: 70.03 kB / 425.8 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.2458, allocations: 3.188 kB / 425.8 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.2458, allocations: 33.72 kB / 425.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.014e-06/0.2459, allocations: 0 / 425.8 MB, free: 39.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003581/0.2462, allocations: 255.9 kB / 426 MB, free: 39.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.2463, allocations: 144.2 kB / 426.2 MB, free: 38.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.328e-05/0.2464, allocations: 127.5 kB / 426.3 MB, free: 38.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.2464, allocations: 29.2 kB / 426.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.404e-05/0.2464, allocations: 86.8 kB / 426.4 MB, free: 38.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.2464, allocations: 18.44 kB / 426.4 MB, free: 38.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.2465, allocations: 29.59 kB / 426.5 MB, free: 38.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.28e-05/0.2465, allocations: 323.2 kB / 426.8 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.271e-05/0.2466, allocations: 34.83 kB / 426.8 MB, free: 38.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.07e-05/0.2467, allocations: 158.4 kB / 427 MB, free: 38.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.2468, allocations: 304.9 kB / 427.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2468, allocations: 0 / 427.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002465/0.2471, allocations: 255.1 kB / 427.5 MB, free: 37.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.2471, allocations: 63.3 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2471, allocations: 5.781 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2472, allocations: 9.938 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.668e-05/0.2472, allocations: 26.92 kB / 427.6 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.2473, allocations: 10.42 kB / 427.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.362e-05/0.2473, allocations: 18.3 kB / 427.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.2474, allocations: 11.59 kB / 427.7 MB, free: 37.69 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.0001302/0.2475, allocations: 206.3 kB / 427.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.2476, allocations: 117.2 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.2477, allocations: 13.75 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.2477, allocations: 11.27 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2477, allocations: 1.828 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2477, allocations: 6.922 kB / 428 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.2478, allocations: 186.6 kB / 428.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2478, allocations: 0 / 428.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.159e-05/0.2479, allocations: 7.094 kB / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2479, allocations: 2.156 kB / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2479, allocations: 9.75 kB / 428.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2479, allocations: 6.938 kB / 428.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2479, allocations: 1.031 kB / 428.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.2481, allocations: 325.3 kB / 428.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.332e-05/0.2482, allocations: 94.77 kB / 428.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.2482, allocations: 6.25 kB / 428.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.156e-05/0.2482, allocations: 2.688 kB / 428.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.247e-05/0.2483, allocations: 7.625 kB / 428.6 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.2483, allocations: 13.05 kB / 428.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3e-05/0.2483, allocations: 89.42 kB / 428.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2483, allocations: 0 / 428.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000286/0.2486, allocations: 30.02 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.0007223/0.2493, allocations: 1.011 MB / 429.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002197/0.2496, allocations: 249.2 kB / 430 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2496, allocations: 384 / 430 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.631e-05/0.2496, allocations: 124.2 kB / 430.1 MB, free: 35.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.25, allocations: 81.64 kB / 430.2 MB, free: 35.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.2512, allocations: 1.945 MB / 432.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.2513, allocations: 0.7151 MB / 432.9 MB, free: 33.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.65e-05/0.2514, allocations: 16.23 kB / 432.9 MB, free: 33.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.2514, allocations: 30.33 kB / 432.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2514, allocations: 4.984 kB / 432.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02386/0.2753, allocations: 2.664 MB / 435.6 MB, free: 33.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.2755, allocations: 278.9 kB / 435.9 MB, free: 32.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/1.951, 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)