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.001524/0.001524, allocations: 107.4 kB / 16.45 MB, free: 6.035 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.002403/0.002403, allocations: 191.8 kB / 17.39 MB, free: 5.559 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.482/1.482, allocations: 222.9 MB / 241.1 MB, free: 15.1 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.05995/0.05995, allocations: 12.05 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 67.91 kB / 419.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09871, allocations: 52.32 MB / 471.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.00469/0.1035, allocations: 2.655 MB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006965/0.1042, allocations: 307 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/0.1045, allocations: 7.938 kB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002937/0.1048, allocations: 51.62 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.1049, allocations: 15.81 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.1052, allocations: 87.7 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000256/0.1055, allocations: 148.1 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.1057, allocations: 85.36 kB / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.635e-05/0.1058, allocations: 55.78 kB / 475.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.106, allocations: 67.64 kB / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.246e-05/0.106, allocations: 12 kB / 475.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.1061, allocations: 28 kB / 475.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.985e-05/0.1062, allocations: 59.81 kB / 475.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1063, allocations: 75.55 kB / 475.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.1067, allocations: 203.3 kB / 475.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1067, allocations: 0 / 475.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1067, allocations: 0 / 475.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1068, allocations: 0 / 475.7 MB, free: 9.512 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.0007521/0.1075, allocations: 470.5 kB / 476.2 MB, free: 9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.1076, allocations: 12.03 kB / 476.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.068e-05/0.1076, allocations: 46.73 kB / 476.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.127e-05/0.1077, allocations: 20.8 kB / 476.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.108, allocations: 232 kB / 476.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.108, allocations: 16.38 kB / 476.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.1081, allocations: 12.38 kB / 476.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.1084, allocations: 187.8 kB / 476.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1084, allocations: 3.938 kB / 476.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.1085, allocations: 8 kB / 476.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1085, allocations: 7.938 kB / 476.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.1087, allocations: 124.1 kB / 476.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.1094, allocations: 481.4 kB / 477.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.1096, allocations: 129.2 kB / 477.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.1097, allocations: 73.69 kB / 477.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.066e-05/0.1098, allocations: 8.062 kB / 477.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.1101, allocations: 125.1 kB / 477.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 8.977e-06/0.1101, allocations: 0 / 477.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004509/0.1105, allocations: 251.6 kB / 477.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.1106, allocations: 93.09 kB / 478 MB, free: 7.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.1108, allocations: 144.5 kB / 478.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.1108, allocations: 37.69 kB / 478.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.426e-05/0.1109, allocations: 128.8 kB / 478.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.04e-05/0.111, allocations: 63.52 kB / 478.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.709e-05/0.1111, allocations: 61.92 kB / 478.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1112, allocations: 330.8 kB / 478.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.1113, allocations: 76.17 kB / 478.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.1115, allocations: 163.7 kB / 479 MB, free: 5.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003172/0.1118, allocations: 246.9 kB / 479.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1118, allocations: 0 / 479.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004205/0.1123, allocations: 273.4 kB / 479.5 MB, free: 5.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.1123, allocations: 11.98 kB / 479.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.1123, allocations: 8.188 kB / 479.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.1123, allocations: 4 kB / 479.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.1125, allocations: 31.92 kB / 479.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.1125, allocations: 11.94 kB / 479.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.1e-05/0.1126, allocations: 23.78 kB / 479.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.1126, allocations: 15.94 kB / 479.6 MB, free: 5.309 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.0001921/0.1128, allocations: 165.8 kB / 479.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.1129, allocations: 12.2 kB / 479.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.837e-05/0.1129, allocations: 13.19 kB / 479.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1129, allocations: 4 kB / 479.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.1129, allocations: 4 kB / 479.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.113, allocations: 0 / 479.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.1132, allocations: 249.4 kB / 480 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.1133, allocations: 0 / 480 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.037e-05/0.1133, allocations: 8 kB / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1133, allocations: 4 kB / 480 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.1133, allocations: 0 / 480 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.1133, allocations: 3.984 kB / 480 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1133, allocations: 4 kB / 480 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.1136, allocations: 235.5 kB / 480.3 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.1137, allocations: 92.95 kB / 480.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.1137, allocations: 8 kB / 480.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.871e-05/0.1138, allocations: 3.984 kB / 480.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.1138, allocations: 11.98 kB / 480.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.1138, allocations: 11.94 kB / 480.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.623e-05/0.1139, allocations: 106 kB / 480.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1139, allocations: 0 / 480.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1142, allocations: 47.88 kB / 480.5 MB, free: 4.25 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.0009551/0.1152, allocations: 0.8741 MB / 481.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003579/0.1156, allocations: 209.4 kB / 481.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1156, allocations: 0 / 481.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.1157, allocations: 102 kB / 481.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.1159, allocations: 15.94 kB / 481.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.1185, allocations: 2.138 MB / 483.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.1189, allocations: 0.7477 MB / 484.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.055e-05/0.1189, allocations: 17.55 kB / 484.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.647e-05/0.119, allocations: 59.34 kB / 484.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.119, allocations: 0 / 484.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.1413, allocations: 3.323 MB / 488 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/7.937, allocations: 10.34 kB / 488 MB, free: 12.74 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)