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.001303/0.001303, allocations: 108 kB / 17.11 MB, free: 6.004 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.00133/0.00133, allocations: 190.5 kB / 18.05 MB, free: 5.094 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.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.09 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.06331/0.06331, allocations: 12.05 MB / 303.9 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003159/0.003159, allocations: 63.91 kB / 420.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1127, allocations: 52.32 MB / 473 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.005824/0.1185, allocations: 2.667 MB / 475.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008053/0.1193, allocations: 350.8 kB / 476.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.1194, allocations: 7.938 kB / 476.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002677/0.1197, allocations: 51.58 kB / 476.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.1199, allocations: 51.8 kB / 476.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.1202, allocations: 87.7 kB / 476.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002544/0.1204, allocations: 156 kB / 476.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1206, allocations: 53.39 kB / 476.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.63e-05/0.1207, allocations: 63.77 kB / 476.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.1208, allocations: 59.7 kB / 476.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.1208, allocations: 12 kB / 476.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002115/0.121, allocations: 143.9 kB / 476.7 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.403e-05/0.1211, allocations: 43.84 kB / 476.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.69e-05/0.1212, allocations: 67.59 kB / 476.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.1216, allocations: 231 kB / 477.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1216, allocations: 4 kB / 477.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1216, allocations: 3.938 kB / 477.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1216, allocations: 0 / 477.1 MB, free: 8.809 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008276/0.1224, allocations: 462.7 kB / 477.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.1225, allocations: 8.031 kB / 477.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.964e-05/0.1225, allocations: 16.84 kB / 477.5 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.1229, allocations: 228.1 kB / 477.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.1229, allocations: 12.61 kB / 477.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.259e-05/0.123, allocations: 16.36 kB / 477.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.1233, allocations: 154.7 kB / 478 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1233, allocations: 192 / 478 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.1233, allocations: 11.88 kB / 478 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1233, allocations: 4 kB / 478 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.1235, allocations: 76.19 kB / 478 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009375/0.1245, allocations: 477.6 kB / 478.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.1246, allocations: 69.19 kB / 478.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.47e-05/0.1247, allocations: 33.8 kB / 478.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.1247, allocations: 7.938 kB / 478.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.125, allocations: 97.09 kB / 478.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.125, allocations: 0 / 478.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004045/0.1254, allocations: 125.5 kB / 478.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.079e-05/0.1255, allocations: 77.11 kB / 478.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.1257, allocations: 166.1 kB / 479.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.1258, allocations: 29.7 kB / 479.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.1259, allocations: 136.2 kB / 479.2 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.1259, allocations: 27.75 kB / 479.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.476e-05/0.126, allocations: 33.7 kB / 479.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.1262, allocations: 322.8 kB / 479.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.523e-05/0.1263, allocations: 31.98 kB / 479.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.431e-05/0.1264, allocations: 59.3 kB / 479.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.1265, allocations: 91.59 kB / 479.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1265, allocations: 3.938 kB / 479.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002048/0.1267, allocations: 117.5 kB / 479.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1267, allocations: 8 kB / 479.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.1268, allocations: 0 / 479.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1268, allocations: 4 kB / 479.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.577e-05/0.1269, allocations: 16.05 kB / 479.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1269, allocations: 0 / 479.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.457e-05/0.1269, allocations: 11.94 kB / 479.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.1269, allocations: 7.938 kB / 480 MB, free: 5.637 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 0.0001595/0.1271, allocations: 141.7 kB / 480.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.1271, allocations: 11.91 kB / 480.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.246e-05/0.1272, allocations: 12.72 kB / 480.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1272, allocations: 0 / 480.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.1272, allocations: 4 kB / 480.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.1272, allocations: 7.984 kB / 480.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000277/0.1275, allocations: 229.7 kB / 480.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.1275, allocations: 4 kB / 480.4 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.03e-05/0.1275, allocations: 0 / 480.4 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1275, allocations: 4 kB / 480.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1275, allocations: 3.984 kB / 480.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1275, allocations: 3.984 kB / 480.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1275, allocations: 0 / 480.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.1277, allocations: 145.8 kB / 480.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/0.1278, allocations: 85.06 kB / 480.6 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.1278, allocations: 128 / 480.6 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.839e-05/0.1278, allocations: 4 kB / 480.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.84e-05/0.1279, allocations: 11.98 kB / 480.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.1279, allocations: 4 kB / 480.6 MB, free: 4.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001026/0.128, allocations: 116.1 kB / 480.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.128, allocations: 0 / 480.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002806/0.1283, allocations: 39.83 kB / 480.8 MB, free: 4.723 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.0007028/0.129, allocations: 247.1 kB / 481 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002632/0.1293, allocations: 105.7 kB / 481.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1293, allocations: 0 / 481.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.672e-05/0.1294, allocations: 53.69 kB / 481.2 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.1296, allocations: 19.06 kB / 481.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006465/0.1302, allocations: 283.6 kB / 481.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.1306, allocations: 0.7312 MB / 482.2 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.591e-05/0.1307, allocations: 12.56 kB / 482.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.1307, allocations: 19.42 kB / 482.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1307, allocations: 0 / 482.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of Templates: time 0.005292/0.136, allocations: 1.411 MB / 483.6 MB, free: 1.84 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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)