Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000918/0.0009181, allocations: 102.8 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.001079/0.001079, allocations: 184.5 kB / 16.97 MB, free: 6.875 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.284/1.284, 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.1564/0.1564, allocations: 12.03 MB / 304.2 MB, free: 1.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002743/0.0002743, allocations: 8 kB / 368.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07908/0.07937, allocations: 53.35 MB / 421.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002645/0.08205, allocations: 2.322 MB / 424 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005163/0.08258, allocations: 378.8 kB / 424.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.944e-05/0.08266, allocations: 7.938 kB / 424.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.08285, allocations: 31.78 kB / 424.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.08298, allocations: 39.81 kB / 424.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001709/0.08316, allocations: 75.8 kB / 424.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001458/0.08331, allocations: 144 kB / 424.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.08346, allocations: 73.52 kB / 424.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.188e-05/0.08352, allocations: 43.78 kB / 424.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/0.0836, allocations: 55.64 kB / 424.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.08362, allocations: 4 kB / 424.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.08379, allocations: 127.9 kB / 424.9 MB, free: 404 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.519e-05/0.08384, allocations: 27.86 kB / 424.9 MB, free: 376 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.177e-05/0.08391, allocations: 89.25 kB / 425 MB, free: 280 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.08415, allocations: 215.5 kB / 425.2 MB, free: 64 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.08416, allocations: 0 / 425.2 MB, free: 64 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.08417, allocations: 0 / 425.2 MB, free: 64 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.08418, allocations: 0 / 425.2 MB, free: 64 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.1452/0.2294, allocations: 417.4 kB / 425.6 MB, free: 39.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.2295, allocations: 10.44 kB / 425.7 MB, free: 39.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.707e-05/0.2295, allocations: 15.53 kB / 425.7 MB, free: 39.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.2297, allocations: 232.2 kB / 425.9 MB, free: 39.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.2298, allocations: 8.109 kB / 425.9 MB, free: 39.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.2298, allocations: 13.73 kB / 425.9 MB, free: 39.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002479/0.23, allocations: 160 kB / 426.1 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2301, allocations: 192 / 426.1 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.2301, allocations: 10.56 kB / 426.1 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.2301, allocations: 3.406 kB / 426.1 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.2302, allocations: 77.81 kB / 426.2 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000533/0.2308, allocations: 474.5 kB / 426.6 MB, free: 39.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.2309, allocations: 77.3 kB / 426.7 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.725e-05/0.231, allocations: 41.91 kB / 426.7 MB, free: 38.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.231, allocations: 1.094 kB / 426.7 MB, free: 38.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001536/0.2312, allocations: 95.64 kB / 426.8 MB, free: 38.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.884e-06/0.2312, allocations: 2.812 kB / 426.8 MB, free: 38.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002552/0.2314, allocations: 123.7 kB / 427 MB, free: 38.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.2315, allocations: 83.12 kB / 427 MB, free: 38.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.2316, allocations: 161.9 kB / 427.2 MB, free: 38.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.2316, allocations: 28.05 kB / 427.2 MB, free: 38.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.341e-05/0.2317, allocations: 134 kB / 427.4 MB, free: 38.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.2317, allocations: 37.25 kB / 427.4 MB, free: 38.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.2317, allocations: 15.97 kB / 427.4 MB, free: 38.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.18e-05/0.2318, allocations: 326.9 kB / 427.7 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.387e-05/0.2318, allocations: 30.5 kB / 427.8 MB, free: 38.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-05/0.2319, allocations: 56.94 kB / 427.8 MB, free: 38.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.947e-05/0.232, allocations: 81.67 kB / 427.9 MB, free: 38.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.232, allocations: 0 / 427.9 MB, free: 38.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001637/0.2322, allocations: 128.2 kB / 428 MB, free: 38.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.2322, allocations: 5.312 kB / 428 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.2322, allocations: 5.719 kB / 428 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.2322, allocations: 0.6562 kB / 428 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.094e-05/0.2323, allocations: 13.47 kB / 428 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.2323, allocations: 0.5469 kB / 428.1 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.791e-05/0.2323, allocations: 6.406 kB / 428.1 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.2324, allocations: 5.5 kB / 428.1 MB, free: 38.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.899e-05/0.2324, allocations: 148.9 kB / 428.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.2325, allocations: 13.12 kB / 428.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.2325, allocations: 13.97 kB / 428.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.2325, allocations: 6.266 kB / 428.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2325, allocations: 0.75 kB / 428.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2325, allocations: 0.5156 kB / 428.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.2327, allocations: 230.2 kB / 428.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.2327, allocations: 0.5625 kB / 428.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.37e-05/0.2327, allocations: 3.719 kB / 428.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2327, allocations: 5.797 kB / 428.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.2327, allocations: 6.219 kB / 428.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2328, allocations: 0 / 428.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2328, allocations: 2.938 kB / 428.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.2329, allocations: 140.2 kB / 428.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.464e-05/0.233, allocations: 91.67 kB / 428.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.233, allocations: 5.516 kB / 428.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.824e-05/0.233, allocations: 5.156 kB / 428.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.2331, allocations: 5.562 kB / 428.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.2331, allocations: 6.688 kB / 428.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.705e-05/0.2331, allocations: 116 kB / 428.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2331, allocations: 0 / 428.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.2334, allocations: 41.78 kB / 428.9 MB, free: 37.46 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0004282/0.2338, allocations: 246.1 kB / 429.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001691/0.234, allocations: 101.8 kB / 429.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.234, allocations: 2.906 kB / 429.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.08e-05/0.2341, allocations: 60.09 kB / 429.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.2342, allocations: 10.17 kB / 429.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/0.2347, allocations: 339.3 kB / 429.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.2348, allocations: 0.7238 MB / 430.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.147e-05/0.2348, allocations: 13.28 kB / 430.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/0.2349, allocations: 18.94 kB / 430.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2349, allocations: 0 / 430.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of Templates: time 0.003504/0.2384, allocations: 1.367 MB / 431.8 MB, free: 36.24 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)