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.0008358/0.0008358, 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.0008618/0.0008618, allocations: 180.3 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.235/1.235, allocations: 223.3 MB / 241 MB, free: 5.27 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.1553/0.1553, allocations: 12.02 MB / 304.2 MB, free: 1.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002872, allocations: 11.98 kB / 368.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09214, allocations: 53.35 MB / 421.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002473/0.09464, allocations: 1.94 MB / 423.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003394/0.095, allocations: 183.5 kB / 423.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.67e-05/0.09507, allocations: 0 / 423.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.09522, allocations: 27.84 kB / 423.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.09534, allocations: 27.89 kB / 423.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.09551, allocations: 39.84 kB / 424 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.09562, allocations: 67.78 kB / 424 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.37e-05/0.09572, allocations: 28.14 kB / 424 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.994e-05/0.09578, allocations: 31.86 kB / 424.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.219e-05/0.09584, allocations: 31.84 kB / 424.1 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.09586, allocations: 4 kB / 424.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.09601, allocations: 127.9 kB / 424.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.09605, allocations: 11.92 kB / 424.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.141e-05/0.09611, allocations: 49.52 kB / 424.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.0963, allocations: 139.6 kB / 424.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.09631, allocations: 0 / 424.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09632, allocations: 0 / 424.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.09632, allocations: 0 / 424.4 MB, free: 0.8789 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.0003876/0.09672, allocations: 423 kB / 424.8 MB, free: 412 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.09676, allocations: 12.03 kB / 424.9 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.767e-05/0.0968, allocations: 42.69 kB / 424.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.09684, allocations: 12.78 kB / 424.9 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.09703, allocations: 204 kB / 425.1 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.09705, allocations: 8.359 kB / 425.1 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.09708, allocations: 12.38 kB / 425.1 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1516/0.2487, allocations: 151.4 kB / 425.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2487, allocations: 0 / 425.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.2488, allocations: 1.719 kB / 425.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.2488, allocations: 1.781 kB / 425.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.374e-05/0.2489, allocations: 35.12 kB / 425.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002912/0.2492, allocations: 293.4 kB / 425.6 MB, free: 39.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.2493, allocations: 152.2 kB / 425.8 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.794e-05/0.2494, allocations: 39.42 kB / 425.8 MB, free: 39.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.2494, allocations: 1.594 kB / 425.8 MB, free: 39.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.495e-05/0.2494, allocations: 34.19 kB / 425.8 MB, free: 39.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.2494, allocations: 0 / 425.8 MB, free: 39.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000283/0.2497, allocations: 164 kB / 426 MB, free: 38.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.2498, allocations: 138 kB / 426.1 MB, free: 38.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.708e-05/0.2499, allocations: 136.3 kB / 426.3 MB, free: 38.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.2499, allocations: 25.7 kB / 426.3 MB, free: 38.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/0.2499, allocations: 97.27 kB / 426.4 MB, free: 38.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.141e-05/0.2499, allocations: 12.84 kB / 426.4 MB, free: 38.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.283e-05/0.25, allocations: 17.81 kB / 426.4 MB, free: 38.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.103e-05/0.25, allocations: 324.4 kB / 426.7 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.36e-05/0.2501, allocations: 11.19 kB / 426.7 MB, free: 38.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.973e-05/0.2501, allocations: 59.34 kB / 426.8 MB, free: 38.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.488e-05/0.2502, allocations: 177.2 kB / 427 MB, free: 38.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2502, allocations: 1.875 kB / 427 MB, free: 38.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001518/0.2504, allocations: 158.3 kB / 427.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.2504, allocations: 65.75 kB / 427.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2504, allocations: 1.906 kB / 427.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.2504, allocations: 2.219 kB / 427.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.254e-05/0.2505, allocations: 11.17 kB / 427.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2505, allocations: 3.281 kB / 427.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.698e-05/0.2505, allocations: 16.09 kB / 427.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.2506, allocations: 4.719 kB / 427.2 MB, free: 37.86 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 8.011e-05/0.2506, allocations: 179 kB / 427.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.782e-05/0.2507, allocations: 60.02 kB / 427.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/0.2508, allocations: 17.42 kB / 427.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2508, allocations: 1.656 kB / 427.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.2508, allocations: 2.734 kB / 427.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2508, allocations: 3.938 kB / 427.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.2509, allocations: 181.5 kB / 427.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2509, allocations: 4.438 kB / 427.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.009e-05/0.251, allocations: 6.438 kB / 427.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.251, allocations: 0 / 427.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.251, allocations: 7.969 kB / 427.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.251, allocations: 0.625 kB / 427.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.251, allocations: 0 / 427.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001764/0.2512, allocations: 262.1 kB / 427.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.383e-05/0.2512, allocations: 98.89 kB / 428 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.2512, allocations: 0 / 428 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.987e-05/0.2513, allocations: 5.688 kB / 428 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.2513, allocations: 5.062 kB / 428 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.2513, allocations: 7.062 kB / 428 MB, free: 37.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.935e-05/0.2514, allocations: 105.8 kB / 428.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2514, allocations: 0 / 428.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.2517, allocations: 28.3 kB / 428.2 MB, free: 37.05 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.0007331/0.2524, allocations: 0.9784 MB / 429.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001611/0.2526, allocations: 168.8 kB / 429.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2526, allocations: 0 / 429.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.787e-05/0.2526, allocations: 125.5 kB / 429.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.2529, allocations: 35.27 kB / 429.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.254, allocations: 1.587 MB / 431.1 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.2541, allocations: 0.6965 MB / 431.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.705e-05/0.2542, allocations: 18.39 kB / 431.8 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.532e-05/0.2542, allocations: 22.36 kB / 431.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2542, allocations: 0 / 431.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01185/0.2661, allocations: 2.82 MB / 434.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/0.2662, allocations: 277.1 kB / 434.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.014, allocations: 0 / 434.9 MB, free: 33.3 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)