Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_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.001178/0.001178, allocations: 105.5 kB / 16.44 MB, free: 6.336 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.001282/0.001282, allocations: 191.5 kB / 17.38 MB, free: 5.766 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.364/1.364, allocations: 222.9 MB / 241.1 MB, free: 15.08 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.05658/0.05658, allocations: 12.05 MB / 303.3 MB, free: 3.113 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.91 kB / 419.6 MB, free: 17.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09776, allocations: 52.32 MB / 471.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003888/0.1017, allocations: 2.651 MB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005392/0.1022, allocations: 303 kB / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.574e-05/0.1024, allocations: 3.938 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002451/0.1026, allocations: 59.62 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.39e-05/0.1027, allocations: 11.81 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.103, allocations: 87.7 kB / 475 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.1032, allocations: 144.1 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.1034, allocations: 93.34 kB / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.057e-05/0.1035, allocations: 63.72 kB / 475.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1036, allocations: 59.7 kB / 475.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.21e-05/0.1036, allocations: 12 kB / 475.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.241e-05/0.1037, allocations: 28 kB / 475.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-05/0.1038, allocations: 67.81 kB / 475.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.08e-05/0.1039, allocations: 71.55 kB / 475.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.1041, allocations: 199.3 kB / 475.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.1042, allocations: 0 / 475.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1042, allocations: 0 / 475.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1042, allocations: 0 / 475.7 MB, free: 9.535 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006116/0.1048, allocations: 470.5 kB / 476.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.1048, allocations: 8.031 kB / 476.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.171e-05/0.1049, allocations: 54.73 kB / 476.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.631e-05/0.105, allocations: 20.8 kB / 476.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.1052, allocations: 232 kB / 476.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.1053, allocations: 16.31 kB / 476.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.1053, allocations: 12.38 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.1056, allocations: 187.8 kB / 476.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.1056, allocations: 3.938 kB / 476.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.1056, allocations: 8 kB / 476.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1057, allocations: 4 kB / 476.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.1058, allocations: 120.1 kB / 476.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007048/0.1066, allocations: 489.4 kB / 477.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.1067, allocations: 117.2 kB / 477.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.1068, allocations: 77.69 kB / 477.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.1069, allocations: 0 / 477.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.1071, allocations: 134.8 kB / 477.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.675e-06/0.1071, allocations: 3.984 kB / 477.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004211/0.1076, allocations: 251.2 kB / 477.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.1076, allocations: 93.09 kB / 478 MB, free: 7.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1078, allocations: 148.8 kB / 478.1 MB, free: 6.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.1078, allocations: 41.69 kB / 478.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.1079, allocations: 120.8 kB / 478.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.372e-05/0.108, allocations: 63.53 kB / 478.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.168e-05/0.1081, allocations: 65.92 kB / 478.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1082, allocations: 326.8 kB / 478.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.1083, allocations: 72.23 kB / 478.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1085, allocations: 159.7 kB / 478.9 MB, free: 6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003103/0.1088, allocations: 250.9 kB / 479.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1088, allocations: 4 kB / 479.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003902/0.1092, allocations: 273.4 kB / 479.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.1093, allocations: 12.17 kB / 479.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.1093, allocations: 4 kB / 479.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1093, allocations: 4 kB / 479.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.1094, allocations: 31.92 kB / 479.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.1095, allocations: 7.938 kB / 479.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.809e-05/0.1095, allocations: 27.78 kB / 479.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.1096, allocations: 15.94 kB / 479.6 MB, free: 5.336 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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.0001735/0.1097, allocations: 165.8 kB / 479.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.1098, allocations: 11.95 kB / 479.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.321e-05/0.1098, allocations: 17.19 kB / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.1098, allocations: 0 / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.1099, allocations: 256 / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1099, allocations: 0 / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.1101, allocations: 253.4 kB / 480 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.1101, allocations: 4 kB / 480 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.565e-05/0.1102, allocations: 4 kB / 480 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1102, allocations: 3.938 kB / 480 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1102, allocations: 8 kB / 480 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1102, allocations: 7.922 kB / 480 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1102, allocations: 0 / 480 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.1105, allocations: 229.7 kB / 480.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.795e-05/0.1105, allocations: 93 kB / 480.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.1106, allocations: 0 / 480.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.92e-05/0.1106, allocations: 4 kB / 480.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.1107, allocations: 16.17 kB / 480.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.1107, allocations: 7.938 kB / 480.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.329e-05/0.1108, allocations: 106 kB / 480.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1108, allocations: 0 / 480.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.111, allocations: 51.88 kB / 480.5 MB, free: 4.277 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: 17 ($whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.00105/0.1121, allocations: 0.8766 MB / 481.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003538/0.1125, allocations: 209.4 kB / 481.6 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1125, allocations: 384 / 481.6 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.1126, allocations: 105.6 kB / 481.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001834/0.1128, allocations: 11.94 kB / 481.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.1152, allocations: 2.134 MB / 483.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.1156, allocations: 0.7516 MB / 484.6 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.969e-05/0.1157, allocations: 17.59 kB / 484.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.1158, allocations: 51.36 kB / 484.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1158, allocations: 0 / 484.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.1341, allocations: 3.334 MB / 488 MB, free: 12.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.638/7.773, allocations: 6.906 kB / 488 MB, free: 12.76 MB / 366.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)