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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007416/0.000742, 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.0007599/0.0007603, allocations: 183.5 kB / 16.97 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.199/1.199, allocations: 223.3 MB / 241 MB, free: 5.34 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.1704/0.1704, allocations: 12.03 MB / 304.2 MB, free: 1.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002972, allocations: 12 kB / 368.4 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08509/0.0854, allocations: 53.35 MB / 421.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002275/0.08771, allocations: 1.936 MB / 423.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003062/0.08803, allocations: 191.4 kB / 423.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.994e-05/0.08809, allocations: 0 / 423.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.08822, allocations: 15.92 kB / 423.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.08834, allocations: 35.83 kB / 423.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001517/0.0885, allocations: 51.83 kB / 424 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.635e-05/0.0886, allocations: 63.84 kB / 424 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.236e-05/0.0887, allocations: 20.16 kB / 424 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.385e-05/0.08875, allocations: 23.92 kB / 424.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.85e-05/0.0888, allocations: 35.78 kB / 424.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.08883, allocations: 4 kB / 424.1 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.08898, allocations: 131.9 kB / 424.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.789e-05/0.089, allocations: 4 kB / 424.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.138e-05/0.08906, allocations: 65.38 kB / 424.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.08925, allocations: 131.7 kB / 424.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.08926, allocations: 3.984 kB / 424.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08926, allocations: 0 / 424.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.08927, allocations: 0 / 424.4 MB, free: 0.875 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003789/0.08965, allocations: 419 kB / 424.8 MB, free: 412 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.0897, allocations: 12.03 kB / 424.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.48e-05/0.08974, allocations: 38.73 kB / 424.9 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.08977, allocations: 12.84 kB / 424.9 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.08995, allocations: 196.1 kB / 425.1 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.08998, allocations: 12.38 kB / 425.1 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.09, allocations: 8.375 kB / 425.1 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1433/0.2334, allocations: 160.3 kB / 425.3 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.2334, allocations: 0 / 425.3 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.2334, allocations: 0.6562 kB / 425.3 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2334, allocations: 0.7031 kB / 425.3 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.069e-05/0.2335, allocations: 27.78 kB / 425.3 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003/0.2338, allocations: 293.4 kB / 425.6 MB, free: 39.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.234, allocations: 158 kB / 425.7 MB, free: 38.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.205e-05/0.2341, allocations: 39.62 kB / 425.8 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.2341, allocations: 2.391 kB / 425.8 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.418e-05/0.2341, allocations: 37.5 kB / 425.8 MB, free: 38.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.2341, allocations: 0 / 425.8 MB, free: 38.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002824/0.2344, allocations: 165.8 kB / 426 MB, free: 38.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.2344, allocations: 134.7 kB / 426.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.974e-05/0.2345, allocations: 135 kB / 426.2 MB, free: 38.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.2345, allocations: 28.61 kB / 426.3 MB, free: 38.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.49e-05/0.2346, allocations: 94.73 kB / 426.4 MB, free: 38.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.2346, allocations: 13.17 kB / 426.4 MB, free: 38.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.2346, allocations: 20.53 kB / 426.4 MB, free: 38.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.654e-05/0.2347, allocations: 324.3 kB / 426.7 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.269e-05/0.2347, allocations: 13.34 kB / 426.7 MB, free: 38.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.154e-05/0.2348, allocations: 61.22 kB / 426.8 MB, free: 38.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.26e-05/0.2348, allocations: 181.5 kB / 427 MB, free: 37.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2349, allocations: 0 / 427 MB, free: 37.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001499/0.235, allocations: 156.6 kB / 427.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.235, allocations: 60.25 kB / 427.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2351, allocations: 4.469 kB / 427.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2351, allocations: 2.094 kB / 427.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.2351, allocations: 11.33 kB / 427.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.2351, allocations: 4.859 kB / 427.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.95e-05/0.2352, allocations: 15.86 kB / 427.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.2352, allocations: 4.469 kB / 427.2 MB, free: 37.68 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/0.2353, allocations: 179.9 kB / 427.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.555e-05/0.2354, allocations: 62.95 kB / 427.5 MB, free: 37.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.233e-05/0.2354, allocations: 14.19 kB / 427.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2354, allocations: 1.812 kB / 427.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.2354, allocations: 0 / 427.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2354, allocations: 7.547 kB / 427.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.2356, allocations: 183.9 kB / 427.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2356, allocations: 0.75 kB / 427.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.154e-05/0.2356, allocations: 6.469 kB / 427.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2356, allocations: 3.906 kB / 427.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.2356, allocations: 6 kB / 427.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2356, allocations: 1.781 kB / 427.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2356, allocations: 0.9375 kB / 427.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.2358, allocations: 261 kB / 427.9 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.231e-05/0.2358, allocations: 92.27 kB / 428 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.2359, allocations: 6.875 kB / 428 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.028e-05/0.2359, allocations: 4.656 kB / 428 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.591e-05/0.2359, allocations: 1.625 kB / 428 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.236, allocations: 10.95 kB / 428 MB, free: 36.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.952e-05/0.236, allocations: 105.5 kB / 428.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.236, allocations: 1.281 kB / 428.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.2363, allocations: 28.22 kB / 428.2 MB, free: 36.88 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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * 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 (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.0007363/0.237, allocations: 0.9659 MB / 429.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001691/0.2372, allocations: 170.2 kB / 429.3 MB, free: 36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2372, allocations: 3.828 kB / 429.3 MB, free: 36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.765e-05/0.2373, allocations: 120.8 kB / 429.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.2375, allocations: 35.38 kB / 429.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.2386, allocations: 1.586 MB / 431 MB, free: 34.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.161e-05/0.2387, allocations: 0.6943 MB / 431.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.644e-05/0.2388, allocations: 17.42 kB / 431.8 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.2388, allocations: 21.53 kB / 431.8 MB, free: 33.8 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2388, allocations: 4 kB / 431.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01122/0.25, allocations: 2.825 MB / 434.6 MB, free: 33.52 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001267/0.2502, allocations: 274.1 kB / 434.9 MB, free: 33.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/1.936, allocations: 0 / 434.9 MB, free: 33.14 MB / 350.1 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/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)