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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey",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.001193/0.001193, allocations: 107.7 kB / 16.45 MB, free: 6.449 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.001139/0.001139, allocations: 189.5 kB / 17.39 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.408/1.408, allocations: 222.9 MB / 241.1 MB, free: 15.21 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.05807/0.05807, allocations: 12.04 MB / 303.3 MB, free: 3.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.91 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1121, allocations: 52.32 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004093/0.1163, allocations: 2.658 MB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006409/0.1169, allocations: 358.9 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.1171, allocations: 15.81 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002293/0.1173, allocations: 43.69 kB / 475 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.1175, allocations: 47.75 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.1178, allocations: 91.7 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002/0.118, allocations: 144 kB / 475.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.1182, allocations: 85.36 kB / 475.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.26e-05/0.1182, allocations: 59.78 kB / 475.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.181e-05/0.1183, allocations: 67.62 kB / 475.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.1184, allocations: 12 kB / 475.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.1186, allocations: 139.9 kB / 475.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.426e-05/0.1186, allocations: 43.84 kB / 475.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.186e-05/0.1187, allocations: 71.61 kB / 475.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002965/0.119, allocations: 230.1 kB / 475.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.119, allocations: 0 / 475.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.119, allocations: 0 / 475.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.119, allocations: 0 / 475.9 MB, free: 9.293 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.0006014/0.1197, allocations: 451.9 kB / 476.4 MB, free: 8.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1197, allocations: 8.031 kB / 476.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.514e-05/0.1198, allocations: 50.73 kB / 476.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.889e-05/0.1198, allocations: 20.75 kB / 476.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.1201, allocations: 231.9 kB / 476.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.1201, allocations: 12.61 kB / 476.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.303e-05/0.1201, allocations: 12.38 kB / 476.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.1204, allocations: 160.8 kB / 476.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1204, allocations: 3.938 kB / 476.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.1204, allocations: 4 kB / 476.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1205, allocations: 4 kB / 476.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.1206, allocations: 80.12 kB / 476.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006352/0.1213, allocations: 469.5 kB / 477.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.1214, allocations: 73.14 kB / 477.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.013e-05/0.1215, allocations: 41.84 kB / 477.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.1215, allocations: 4 kB / 477.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.1218, allocations: 96.97 kB / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.1218, allocations: 0 / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003088/0.1221, allocations: 129.4 kB / 477.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.1221, allocations: 81.11 kB / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.1223, allocations: 166.2 kB / 478 MB, free: 6.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.1223, allocations: 29.64 kB / 478 MB, free: 6.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.21e-05/0.1224, allocations: 132.1 kB / 478.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.633e-05/0.1225, allocations: 27.56 kB / 478.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/0.1225, allocations: 29.7 kB / 478.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1226, allocations: 326.8 kB / 478.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.678e-05/0.1227, allocations: 23.98 kB / 478.5 MB, free: 6.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.864e-05/0.1228, allocations: 59.42 kB / 478.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.1229, allocations: 83.36 kB / 478.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1229, allocations: 0 / 478.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000196/0.1231, allocations: 125.8 kB / 478.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1231, allocations: 8 kB / 478.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.1231, allocations: 3.984 kB / 478.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1232, allocations: 4.062 kB / 478.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.795e-05/0.1232, allocations: 16 kB / 478.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1233, allocations: 0 / 478.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.909e-05/0.1233, allocations: 7.906 kB / 478.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.1233, allocations: 8 kB / 478.8 MB, free: 6.07 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.0001054/0.1234, allocations: 135.3 kB / 479 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.037e-05/0.1235, allocations: 11.91 kB / 479 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.735e-05/0.1235, allocations: 20.7 kB / 479 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1235, allocations: 3.938 kB / 479 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1235, allocations: 4 kB / 479 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1235, allocations: 0 / 479 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.1237, allocations: 233.4 kB / 479.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/0.1237, allocations: 0 / 479.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.496e-05/0.1238, allocations: 7.984 kB / 479.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1238, allocations: 240 / 479.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.1238, allocations: 4 kB / 479.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1238, allocations: 0 / 479.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1238, allocations: 0 / 479.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/0.124, allocations: 149.7 kB / 479.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/0.124, allocations: 81.02 kB / 479.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.1241, allocations: 4 kB / 479.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.757e-05/0.1241, allocations: 3.984 kB / 479.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.1241, allocations: 8 kB / 479.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.1241, allocations: 4 kB / 479.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.105e-05/0.1242, allocations: 116.1 kB / 479.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1242, allocations: 0 / 479.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.1245, allocations: 39.84 kB / 479.7 MB, free: 5.16 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.0007785/0.1253, allocations: 0.8134 MB / 480.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002051/0.1255, allocations: 105.6 kB / 480.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1255, allocations: 0 / 480.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.836e-05/0.1256, allocations: 65.56 kB / 480.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/0.1258, allocations: 9.203 kB / 480.6 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.1274, allocations: 1.644 MB / 482.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.1276, allocations: 0.7236 MB / 483 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.636e-05/0.1277, allocations: 16.55 kB / 483 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.682e-05/0.1278, allocations: 43.42 kB / 483.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1278, allocations: 0 / 483.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.1476, allocations: 3.418 MB / 486.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/7.978, allocations: 21.91 kB / 486.5 MB, free: 14.34 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)