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: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005145/0.005145, allocations: 92.55 kB / 15.91 MB, free: 6.277 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.001244/0.001244, allocations: 197.4 kB / 16.84 MB, free: 6.191 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.251/1.251, allocations: 222.9 MB / 240.5 MB, free: 4.59 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.162/0.162, allocations: 12.02 MB / 302.7 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 59.91 kB / 365.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09303, allocations: 52.31 MB / 418.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003503/0.09656, allocations: 2.267 MB / 420.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002466/0.09683, allocations: 131.6 kB / 420.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.308e-05/0.0969, allocations: 4 kB / 420.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.09708, allocations: 23.86 kB / 420.5 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.299e-05/0.09715, allocations: 3.938 kB / 420.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001967/0.09735, allocations: 47.88 kB / 420.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.09746, allocations: 67.78 kB / 420.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.891e-05/0.09757, allocations: 24.22 kB / 420.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.049e-05/0.09762, allocations: 35.84 kB / 420.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.053e-05/0.09768, allocations: 27.84 kB / 420.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.0977, allocations: 4 kB / 420.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.895e-05/0.09777, allocations: 24 kB / 420.7 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.617e-05/0.09783, allocations: 19.92 kB / 420.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.841e-05/0.09789, allocations: 39.72 kB / 420.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.09806, allocations: 99.7 kB / 420.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.09807, allocations: 0 / 420.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.09808, allocations: 11.92 kB / 420.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.09809, allocations: 3.938 kB / 420.9 MB, free: 2.836 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.0004108/0.09851, allocations: 435 kB / 421.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.783e-05/0.09854, allocations: 8.031 kB / 421.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.289e-05/0.09859, allocations: 20.75 kB / 421.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.09877, allocations: 200.1 kB / 421.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.09879, allocations: 4.375 kB / 421.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.09882, allocations: 16.31 kB / 421.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/0.0992, allocations: 267.7 kB / 421.8 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.09921, allocations: 0 / 421.8 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.09923, allocations: 0 / 421.8 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.09926, allocations: 11.98 kB / 421.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.09936, allocations: 63.89 kB / 421.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003109/0.09968, allocations: 301.6 kB / 422.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.09986, allocations: 137.4 kB / 422.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.847e-05/0.09996, allocations: 65.78 kB / 422.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.09997, allocations: 4 kB / 422.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.1, allocations: 38.56 kB / 422.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.272e-06/0.1, allocations: 3.938 kB / 422.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003837/0.1004, allocations: 250.8 kB / 422.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/0.1005, allocations: 144.5 kB / 422.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.656e-05/0.1006, allocations: 125.7 kB / 423 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.1006, allocations: 29.7 kB / 423 MB, free: 500 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.101e-05/0.1007, allocations: 96.41 kB / 423.1 MB, free: 396 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.1007, allocations: 15.84 kB / 423.1 MB, free: 380 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.355e-05/0.1008, allocations: 45.73 kB / 423.2 MB, free: 328 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1575/0.2582, allocations: 326.6 kB / 423.5 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.2584, allocations: 25.8 kB / 423.5 MB, free: 41.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.232e-05/0.2585, allocations: 147.8 kB / 423.6 MB, free: 41.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.2586, allocations: 307.7 kB / 423.9 MB, free: 41.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.2587, allocations: 4.188 kB / 423.9 MB, free: 41.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002964/0.259, allocations: 253.8 kB / 424.2 MB, free: 40.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/0.259, allocations: 60.52 kB / 424.3 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.259, allocations: 6.703 kB / 424.3 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.259, allocations: 11.66 kB / 424.3 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.345e-05/0.2591, allocations: 25.61 kB / 424.3 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.2592, allocations: 9.594 kB / 424.3 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.438e-05/0.2593, allocations: 17.38 kB / 424.3 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.2593, allocations: 11.75 kB / 424.3 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.0001726/0.2595, allocations: 203.9 kB / 424.5 MB, free: 40.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.2596, allocations: 125.4 kB / 424.7 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.671e-05/0.2596, allocations: 11.53 kB / 424.7 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.2597, allocations: 7.562 kB / 424.7 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2597, allocations: 3 kB / 424.7 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2597, allocations: 1.688 kB / 424.7 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.2598, allocations: 192.4 kB / 424.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2598, allocations: 7.688 kB / 424.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.188e-05/0.2598, allocations: 5.547 kB / 424.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2598, allocations: 0 / 424.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.2599, allocations: 2.844 kB / 424.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.2599, allocations: 2.469 kB / 424.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2599, allocations: 4.656 kB / 424.9 MB, free: 40.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.2601, allocations: 331.6 kB / 425.2 MB, free: 40.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.619e-05/0.2601, allocations: 86.42 kB / 425.3 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.2602, allocations: 4.203 kB / 425.3 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.488e-05/0.2602, allocations: 6.031 kB / 425.3 MB, free: 40.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.289e-05/0.2603, allocations: 6.281 kB / 425.3 MB, free: 40.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.2603, allocations: 8.219 kB / 425.3 MB, free: 40.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.118e-05/0.2603, allocations: 92.81 kB / 425.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2603, allocations: 0 / 425.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002923/0.2606, allocations: 29.7 kB / 425.4 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.0004376/0.261, allocations: 272.4 kB / 425.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002351/0.2613, allocations: 240.5 kB / 425.9 MB, free: 39.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2613, allocations: 0 / 425.9 MB, free: 39.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.805e-05/0.2614, allocations: 125 kB / 426.1 MB, free: 39.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.2617, allocations: 86.27 kB / 426.1 MB, free: 39.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004071/0.2621, allocations: 285.5 kB / 426.4 MB, free: 39.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.2622, allocations: 0.7066 MB / 427.1 MB, free: 38.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.013e-05/0.2623, allocations: 19.41 kB / 427.2 MB, free: 38.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.77e-05/0.2623, allocations: 17.25 kB / 427.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2623, allocations: 0 / 427.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of Templates: time 0.003259/0.2656, allocations: 1.494 MB / 428.7 MB, free: 38.77 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile (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 & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)