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.001292/0.001292, allocations: 112.4 kB / 17.08 MB, free: 6.008 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.001492/0.001492, allocations: 191 kB / 18.02 MB, free: 5.086 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.335/1.335, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05824/0.05824, allocations: 12.04 MB / 303.9 MB, free: 3.113 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.91 kB / 367.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2051, allocations: 52.3 MB / 420.2 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003137/0.2083, allocations: 2.666 MB / 422.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004755/0.2088, allocations: 362.8 kB / 423.3 MB, free: 17.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.835e-05/0.2089, allocations: 11.41 kB / 423.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.2091, allocations: 39.7 kB / 423.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.2093, allocations: 55.73 kB / 423.4 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001728/0.2095, allocations: 87.7 kB / 423.4 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.2096, allocations: 144 kB / 423.6 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.2098, allocations: 81.52 kB / 423.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.233e-05/0.2098, allocations: 71.69 kB / 423.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.081e-05/0.2099, allocations: 59.7 kB / 423.8 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.2099, allocations: 12 kB / 423.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.2101, allocations: 139.8 kB / 423.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.992e-05/0.2101, allocations: 39.91 kB / 424 MB, free: 17.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.288e-05/0.2102, allocations: 71.59 kB / 424 MB, free: 17.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.2104, allocations: 236.9 kB / 424.3 MB, free: 16.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2104, allocations: 0 / 424.3 MB, free: 16.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2104, allocations: 0 / 424.3 MB, free: 16.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.2104, allocations: 0 / 424.3 MB, free: 16.92 MB / 302.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.0004505/0.2109, allocations: 451 kB / 424.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.864e-05/0.2109, allocations: 8.031 kB / 424.7 MB, free: 16.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.132e-05/0.211, allocations: 20.69 kB / 424.7 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.2112, allocations: 231.7 kB / 425 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.2112, allocations: 8.609 kB / 425 MB, free: 16.13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.2112, allocations: 16.38 kB / 425 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.2114, allocations: 156.8 kB / 425.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2115, allocations: 4.188 kB / 425.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.2115, allocations: 7.938 kB / 425.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.2115, allocations: 4 kB / 425.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.2116, allocations: 80.12 kB / 425.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.2121, allocations: 469.5 kB / 425.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.2122, allocations: 73.14 kB / 425.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.446e-05/0.2123, allocations: 45.84 kB / 425.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.2123, allocations: 3.984 kB / 425.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001354/0.2125, allocations: 93.05 kB / 425.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.2125, allocations: 0 / 425.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002413/0.2127, allocations: 137.3 kB / 426 MB, free: 14.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.2128, allocations: 81.11 kB / 426.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.2129, allocations: 159.7 kB / 426.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.208e-06/0.2129, allocations: 29.7 kB / 426.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.448e-05/0.2129, allocations: 128.1 kB / 426.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.213, allocations: 35.62 kB / 426.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.213, allocations: 29.62 kB / 426.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.248e-05/0.213, allocations: 326.8 kB / 426.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.653e-05/0.2131, allocations: 23.98 kB / 426.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.078e-05/0.2132, allocations: 59.36 kB / 426.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.872e-05/0.2132, allocations: 83.41 kB / 427 MB, free: 13.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2133, allocations: 4 kB / 427 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001492/0.2134, allocations: 125.4 kB / 427.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.2134, allocations: 4 kB / 427.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.2134, allocations: 4 kB / 427.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2135, allocations: 0 / 427.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.892e-05/0.2135, allocations: 12 kB / 427.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.2135, allocations: 0 / 427.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.672e-05/0.2136, allocations: 15.84 kB / 427.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.2136, allocations: 8 kB / 427.2 MB, free: 13.76 MB / 302.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.265e-05/0.2137, allocations: 137.7 kB / 427.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.2137, allocations: 11.91 kB / 427.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.76e-05/0.2137, allocations: 16.7 kB / 427.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2137, allocations: 7.938 kB / 427.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2138, allocations: 0 / 427.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.2138, allocations: 0 / 427.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.2139, allocations: 233.8 kB / 427.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.2139, allocations: 0 / 427.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.105e-05/0.2139, allocations: 12 kB / 427.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2139, allocations: 0 / 427.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.214, allocations: 4 kB / 427.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.214, allocations: 0 / 427.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.214, allocations: 0 / 427.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001422/0.2141, allocations: 141.7 kB / 427.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.187e-05/0.2141, allocations: 85 kB / 427.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.2142, allocations: 8 kB / 427.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.735e-05/0.2142, allocations: 0 / 427.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.2142, allocations: 8 kB / 427.8 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.2143, allocations: 7.984 kB / 427.8 MB, free: 13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.37e-05/0.2143, allocations: 111.3 kB / 427.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2143, allocations: 0 / 427.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.2146, allocations: 39.83 kB / 428 MB, free: 12.85 MB / 302.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.0004216/0.215, allocations: 252.8 kB / 428.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001662/0.2152, allocations: 105.5 kB / 428.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.2152, allocations: 0 / 428.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.203e-05/0.2152, allocations: 65.77 kB / 428.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.2154, allocations: 9.891 kB / 428.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003722/0.2158, allocations: 280 kB / 428.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.2159, allocations: 0.7275 MB / 429.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.855e-05/0.216, allocations: 20.34 kB / 429.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.22e-05/0.216, allocations: 11.44 kB / 429.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.216, allocations: 0 / 429.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Templates: time 0.003474/0.2195, allocations: 1.394 MB / 430.8 MB, free: 9.973 MB / 302.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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)