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: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 101.3 kB / 16.45 MB, free: 6.438 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.001236/0.001236, allocations: 190 kB / 17.38 MB, free: 5.668 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.246/1.246, allocations: 222.9 MB / 241.1 MB, free: 15.07 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.05495/0.05495, allocations: 12.05 MB / 303.3 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 67.88 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 52.32 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003791/0.1073, allocations: 2.239 MB / 474.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002886/0.1076, allocations: 131.5 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.304e-05/0.1077, allocations: 4 kB / 474.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1079, allocations: 15.86 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.431e-05/0.1079, allocations: 11.92 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.1082, allocations: 39.89 kB / 474.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001528/0.1083, allocations: 79.77 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.1084, allocations: 32.2 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.043e-05/0.1085, allocations: 31.86 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.204e-05/0.1086, allocations: 31.84 kB / 474.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1086, allocations: 8 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.349e-05/0.1087, allocations: 27.98 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5e-05/0.1087, allocations: 19.86 kB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.432e-05/0.1088, allocations: 39.75 kB / 474.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.109, allocations: 115.6 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.109, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.109, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.109, allocations: 4 kB / 474.7 MB, free: 10.51 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.0004572/0.1095, allocations: 446.3 kB / 475.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.1096, allocations: 8.031 kB / 475.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.23e-05/0.1096, allocations: 46.73 kB / 475.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.452e-05/0.1097, allocations: 16.75 kB / 475.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.1099, allocations: 196.2 kB / 475.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.1099, allocations: 8.375 kB / 475.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.11, allocations: 4.375 kB / 475.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004154/0.1104, allocations: 278.4 kB / 475.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1104, allocations: 0 / 475.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.1104, allocations: 4 kB / 475.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.1104, allocations: 8 kB / 475.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.1106, allocations: 67.91 kB / 475.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003812/0.111, allocations: 297.6 kB / 476 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.1112, allocations: 137.4 kB / 476.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.628e-05/0.1113, allocations: 69.81 kB / 476.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.1113, allocations: 7.938 kB / 476.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.1113, allocations: 34.56 kB / 476.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.1113, allocations: 0 / 476.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004295/0.1118, allocations: 262.3 kB / 476.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1119, allocations: 136.5 kB / 476.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.112, allocations: 137.7 kB / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1121, allocations: 25.7 kB / 476.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.1121, allocations: 96.41 kB / 476.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.1121, allocations: 15.89 kB / 476.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.839e-05/0.1122, allocations: 41.7 kB / 477 MB, free: 7.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.1124, allocations: 322.8 kB / 477.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.365e-05/0.1125, allocations: 31.98 kB / 477.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.1126, allocations: 153.1 kB / 477.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.1128, allocations: 307.7 kB / 477.8 MB, free: 6.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1129, allocations: 0 / 477.8 MB, free: 6.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003666/0.1132, allocations: 264.5 kB / 478 MB, free: 6.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.482e-05/0.1133, allocations: 59.41 kB / 478.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.1133, allocations: 4 kB / 478.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.1133, allocations: 7.938 kB / 478.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.865e-05/0.1134, allocations: 31.92 kB / 478.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1134, allocations: 8.5 kB / 478.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.183e-05/0.1135, allocations: 19.84 kB / 478.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.1136, allocations: 16 kB / 478.2 MB, free: 6.547 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.0001613/0.1137, allocations: 203.5 kB / 478.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.1139, allocations: 123 kB / 478.5 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.1139, allocations: 12.83 kB / 478.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.1139, allocations: 11.94 kB / 478.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.114, allocations: 0 / 478.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.114, allocations: 0 / 478.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001716/0.1141, allocations: 193.5 kB / 478.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1141, allocations: 0 / 478.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.236e-05/0.1142, allocations: 7.938 kB / 478.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.1142, allocations: 0 / 478.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.1142, allocations: 7.984 kB / 478.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.1142, allocations: 11.88 kB / 478.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1142, allocations: 0 / 478.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.1145, allocations: 315 kB / 479.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.079e-05/0.1146, allocations: 89.02 kB / 479.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.1146, allocations: 4 kB / 479.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.587e-05/0.1147, allocations: 4 kB / 479.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.624e-05/0.1147, allocations: 7.984 kB / 479.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.1147, allocations: 4 kB / 479.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.084e-05/0.1148, allocations: 91.27 kB / 479.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1148, allocations: 0 / 479.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003077/0.1151, allocations: 32.12 kB / 479.3 MB, free: 5.332 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.0009239/0.116, allocations: 1.024 MB / 480.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002906/0.1163, allocations: 242.9 kB / 480.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1163, allocations: 3.938 kB / 480.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.249e-05/0.1164, allocations: 118.8 kB / 480.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.1168, allocations: 83.94 kB / 480.7 MB, free: 3.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.1185, allocations: 1.917 MB / 482.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1188, allocations: 0.7154 MB / 483.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.228e-05/0.1188, allocations: 16.86 kB / 483.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.1189, allocations: 39.36 kB / 483.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1189, allocations: 0 / 483.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.1374, allocations: 3.087 MB / 486.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.368/7.505, allocations: 11.8 kB / 486.5 MB, free: 13.96 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)