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.001149/0.001149, allocations: 108 kB / 16.45 MB, free: 6.43 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.001125/0.001124, allocations: 190.9 kB / 17.39 MB, free: 5.688 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.372/1.372, allocations: 222.9 MB / 241.1 MB, free: 15.06 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.05502/0.05502, allocations: 12.05 MB / 303.3 MB, free: 3.062 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 59.91 kB / 420.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1107, allocations: 52.32 MB / 472.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004348/0.1151, allocations: 2.663 MB / 475 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006545/0.1157, allocations: 346.9 kB / 475.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.1158, allocations: 7.938 kB / 475.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.1161, allocations: 51.66 kB / 475.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.1163, allocations: 59.66 kB / 475.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.1166, allocations: 83.7 kB / 475.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.1168, allocations: 148 kB / 475.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.117, allocations: 85.38 kB / 475.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.45e-05/0.1171, allocations: 59.77 kB / 475.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.1172, allocations: 67.64 kB / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.191e-05/0.1173, allocations: 15.94 kB / 475.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.1175, allocations: 139.9 kB / 476.1 MB, free: 9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.52e-05/0.1176, allocations: 43.84 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.932e-05/0.1177, allocations: 63.59 kB / 476.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00038/0.1181, allocations: 235 kB / 476.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1181, allocations: 0 / 476.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1181, allocations: 4 kB / 476.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.1181, allocations: 0 / 476.4 MB, free: 8.66 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.0007143/0.1188, allocations: 458.8 kB / 476.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.1189, allocations: 8.031 kB / 476.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.108e-05/0.119, allocations: 16.84 kB / 476.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.1192, allocations: 232.9 kB / 477.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.1193, allocations: 12.61 kB / 477.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.1193, allocations: 12.38 kB / 477.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.1196, allocations: 154.7 kB / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1196, allocations: 192 / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.1196, allocations: 7.938 kB / 477.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.1196, allocations: 4 kB / 477.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.1198, allocations: 92.11 kB / 477.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000707/0.1205, allocations: 461.7 kB / 477.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.1207, allocations: 85.08 kB / 477.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.48e-05/0.1208, allocations: 41.84 kB / 478 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/0.1208, allocations: 0 / 478 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/0.121, allocations: 97.03 kB / 478.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.121, allocations: 0 / 478.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003032/0.1213, allocations: 125.5 kB / 478.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.1214, allocations: 77.11 kB / 478.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.1215, allocations: 166.1 kB / 478.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.1216, allocations: 25.7 kB / 478.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.08e-05/0.1217, allocations: 132.2 kB / 478.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.1217, allocations: 35.67 kB / 478.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.1218, allocations: 29.7 kB / 478.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1219, allocations: 334.8 kB / 479 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.644e-05/0.122, allocations: 23.98 kB / 479 MB, free: 5.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.099e-05/0.122, allocations: 51.42 kB / 479 MB, free: 5.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.1222, allocations: 87.55 kB / 479.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1222, allocations: 4 kB / 479.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001971/0.1224, allocations: 125.5 kB / 479.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1224, allocations: 7.938 kB / 479.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.1224, allocations: 0 / 479.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1224, allocations: 4 kB / 479.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.251e-05/0.1225, allocations: 15.98 kB / 479.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1225, allocations: 4 kB / 479.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.609e-05/0.1226, allocations: 0 / 479.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.1226, allocations: 4 kB / 479.3 MB, free: 5.496 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.0001355/0.1227, allocations: 143.5 kB / 479.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.1228, allocations: 15.84 kB / 479.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.514e-05/0.1228, allocations: 12.72 kB / 479.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1228, allocations: 0 / 479.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1228, allocations: 4 kB / 479.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1228, allocations: 3.984 kB / 479.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.1231, allocations: 237.4 kB / 479.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.1231, allocations: 4 kB / 479.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.258e-05/0.1231, allocations: 4 kB / 479.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1231, allocations: 4 kB / 479.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.1231, allocations: 3.984 kB / 479.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1231, allocations: 0 / 479.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1231, allocations: 4 kB / 479.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001953/0.1233, allocations: 133.8 kB / 479.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.1234, allocations: 85.3 kB / 479.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.1234, allocations: 4.125 kB / 479.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.819e-05/0.1234, allocations: 12 kB / 480 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.1235, allocations: 11.97 kB / 480 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.1235, allocations: 0 / 480 MB, free: 4.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.594e-05/0.1236, allocations: 116.1 kB / 480.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1236, allocations: 4 kB / 480.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002415/0.1239, allocations: 35.89 kB / 480.1 MB, free: 4.574 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.000528/0.1244, allocations: 247.1 kB / 480.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.1246, allocations: 105.7 kB / 480.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1246, allocations: 0 / 480.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.899e-05/0.1247, allocations: 61.62 kB / 480.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001628/0.1249, allocations: 11 kB / 480.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000523/0.1254, allocations: 287.9 kB / 480.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.1258, allocations: 0.7312 MB / 481.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.775e-05/0.1258, allocations: 16.48 kB / 481.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.578e-05/0.1259, allocations: 15.44 kB / 481.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1259, allocations: 0 / 481.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of Templates: time 0.004249/0.1301, allocations: 1.406 MB / 483 MB, free: 1.684 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)