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.003914/0.003914, allocations: 89.5 kB / 15.91 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009644/0.0009644, allocations: 193.6 kB / 16.83 MB, free: 6.238 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.216/1.216, allocations: 222.9 MB / 240.5 MB, free: 4.609 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.1483/0.1483, allocations: 12.01 MB / 302.7 MB, free: 1.012 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 63.84 kB / 365.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07994/0.08105, allocations: 52.32 MB / 418.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003424/0.08451, allocations: 2.256 MB / 420.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000249/0.08477, allocations: 143.5 kB / 420.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.82e-05/0.08484, allocations: 4 kB / 420.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.085, allocations: 23.84 kB / 420.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.901e-05/0.08506, allocations: 3.938 kB / 420.6 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.08526, allocations: 43.91 kB / 420.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.756e-05/0.08536, allocations: 67.83 kB / 420.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.314e-05/0.08546, allocations: 28.22 kB / 420.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.601e-05/0.08551, allocations: 31.84 kB / 420.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.912e-05/0.08557, allocations: 31.84 kB / 420.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.08559, allocations: 4 kB / 420.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.609e-05/0.08565, allocations: 16 kB / 420.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.409e-05/0.0857, allocations: 15.92 kB / 420.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.957e-05/0.08578, allocations: 43.72 kB / 420.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.08594, allocations: 103.6 kB / 421 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.08595, allocations: 0 / 421 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.08596, allocations: 0 / 421 MB, free: 2.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.08597, allocations: 4 kB / 421 MB, free: 2.762 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.0004675/0.08644, allocations: 454.9 kB / 421.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.08649, allocations: 8.031 kB / 421.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.472e-05/0.08654, allocations: 46.73 kB / 421.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.784e-05/0.08659, allocations: 16.75 kB / 421.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.08679, allocations: 188.2 kB / 421.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.08682, allocations: 16.3 kB / 421.7 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.08684, allocations: 8.375 kB / 421.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.08724, allocations: 263.7 kB / 422 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.08726, allocations: 0 / 422 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.08728, allocations: 7.938 kB / 422 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.0873, allocations: 11.98 kB / 422 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.08741, allocations: 59.97 kB / 422.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000323/0.08774, allocations: 301.5 kB / 422.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.08792, allocations: 141.4 kB / 422.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.638e-05/0.08802, allocations: 65.75 kB / 422.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.08804, allocations: 0 / 422.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.08807, allocations: 34.56 kB / 422.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.08808, allocations: 4 kB / 422.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003842/0.08847, allocations: 255.5 kB / 422.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/0.08855, allocations: 144.5 kB / 423 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.755e-05/0.08865, allocations: 125.8 kB / 423.1 MB, free: 396 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.08867, allocations: 29.64 kB / 423.1 MB, free: 360 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.605e-05/0.08873, allocations: 96.41 kB / 423.2 MB, free: 256 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.08875, allocations: 11.91 kB / 423.3 MB, free: 244 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.08881, allocations: 45.7 kB / 423.3 MB, free: 192 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1484/0.2372, allocations: 326.6 kB / 423.6 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.399e-05/0.2373, allocations: 26.67 kB / 423.6 MB, free: 41.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.262e-05/0.2374, allocations: 151.7 kB / 423.8 MB, free: 41.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.2376, allocations: 305.7 kB / 424.1 MB, free: 41.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.2376, allocations: 0.8438 kB / 424.1 MB, free: 41.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000295/0.2379, allocations: 260.4 kB / 424.3 MB, free: 40.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.238, allocations: 59.34 kB / 424.4 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.238, allocations: 7.156 kB / 424.4 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.238, allocations: 7.5 kB / 424.4 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.313e-05/0.2381, allocations: 25.91 kB / 424.4 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.2381, allocations: 12.03 kB / 424.5 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/0.2382, allocations: 21.06 kB / 424.5 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.2382, allocations: 13.81 kB / 424.5 MB, free: 40.92 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.0001631/0.2384, allocations: 205.8 kB / 424.7 MB, free: 40.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.2385, allocations: 123 kB / 424.8 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.2386, allocations: 15.5 kB / 424.8 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.2386, allocations: 5.234 kB / 424.8 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2386, allocations: 2.375 kB / 424.8 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2386, allocations: 1.406 kB / 424.8 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.2388, allocations: 190.5 kB / 425 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.2388, allocations: 0 / 425 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.221e-05/0.2388, allocations: 14.69 kB / 425 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2388, allocations: 0.5156 kB / 425 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2388, allocations: 6.281 kB / 425 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2388, allocations: 0 / 425 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.2388, allocations: 0.8438 kB / 425 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.2391, allocations: 325.2 kB / 425.4 MB, free: 40.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.272e-05/0.2391, allocations: 91.81 kB / 425.4 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.2391, allocations: 3.375 kB / 425.5 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.378e-05/0.2392, allocations: 6.531 kB / 425.5 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.2392, allocations: 8.031 kB / 425.5 MB, free: 40.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.707e-06/0.2392, allocations: 4.531 kB / 425.5 MB, free: 40.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.2392, allocations: 97.05 kB / 425.6 MB, free: 40.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2393, allocations: 0 / 425.6 MB, free: 40.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002859/0.2395, allocations: 31.06 kB / 425.6 MB, free: 40.14 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.0007083/0.2403, allocations: 1.012 MB / 426.6 MB, free: 39.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002237/0.2405, allocations: 242.9 kB / 426.8 MB, free: 39.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2405, allocations: 0 / 426.8 MB, free: 39.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.714e-05/0.2406, allocations: 122.1 kB / 427 MB, free: 39.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.2409, allocations: 79.05 kB / 427 MB, free: 39.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2422, allocations: 1.955 MB / 429 MB, free: 37.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/0.2423, allocations: 0.7123 MB / 429.7 MB, free: 36.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.839e-05/0.2424, allocations: 19.38 kB / 429.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.726e-05/0.2424, allocations: 29.83 kB / 429.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2424, allocations: 0 / 429.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01116/0.2536, allocations: 2.838 MB / 432.6 MB, free: 36.37 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/0.2538, allocations: 278.8 kB / 432.9 MB, free: 36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.937, allocations: 2.844 kB / 432.9 MB, free: 36 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)