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.001124/0.001124, allocations: 108 kB / 16.45 MB, free: 6.457 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.001109/0.001109, allocations: 192.2 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.374/1.374, 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.05761/0.05761, allocations: 12.05 MB / 303.3 MB, free: 3.113 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 63.91 kB / 419.6 MB, free: 17.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09175/0.09293, allocations: 52.32 MB / 471.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003762/0.09674, allocations: 2.242 MB / 474.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003175/0.09708, allocations: 127.6 kB / 474.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.533e-05/0.09717, allocations: 7.938 kB / 474.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001915/0.09737, allocations: 15.88 kB / 474.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.257e-05/0.09749, allocations: 11.91 kB / 474.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.09773, allocations: 46.89 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.09791, allocations: 79.78 kB / 474.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.09806, allocations: 32.19 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.639e-05/0.09813, allocations: 31.86 kB / 474.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.914e-05/0.0982, allocations: 31.83 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.09823, allocations: 8 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.441e-05/0.09831, allocations: 20 kB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.786e-05/0.09839, allocations: 27.86 kB / 474.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.587e-05/0.09847, allocations: 43.73 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002463/0.09872, allocations: 115.8 kB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.09874, allocations: 4 kB / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.09875, allocations: 0 / 474.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.09877, allocations: 0 / 474.7 MB, free: 10.54 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.0006793/0.09945, allocations: 450.4 kB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.0995, allocations: 8.031 kB / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.394e-05/0.09955, allocations: 42.73 kB / 475.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.09961, allocations: 24.78 kB / 475.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.09995, allocations: 196.2 kB / 475.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.09997, allocations: 4.375 kB / 475.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.928e-05/0.1, allocations: 8.375 kB / 475.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004706/0.1005, allocations: 277.8 kB / 475.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.1005, allocations: 3.984 kB / 475.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.1005, allocations: 4 kB / 475.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.1005, allocations: 4 kB / 475.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.1007, allocations: 67.91 kB / 475.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004197/0.1011, allocations: 301.6 kB / 476.1 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001818/0.1013, allocations: 129.4 kB / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.1014, allocations: 69.83 kB / 476.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1014, allocations: 7.938 kB / 476.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1015, allocations: 38.55 kB / 476.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.753e-06/0.1015, allocations: 0 / 476.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004783/0.102, allocations: 254.9 kB / 476.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.1021, allocations: 136.5 kB / 476.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.1022, allocations: 125.7 kB / 476.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1022, allocations: 29.7 kB / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.756e-05/0.1023, allocations: 92.45 kB / 476.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.1024, allocations: 23.97 kB / 477 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.956e-05/0.1024, allocations: 41.7 kB / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1026, allocations: 318.8 kB / 477.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.78e-05/0.1027, allocations: 35.97 kB / 477.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.1029, allocations: 153.1 kB / 477.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.1033, allocations: 315.8 kB / 477.8 MB, free: 7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1033, allocations: 0 / 477.8 MB, free: 7 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003478/0.1036, allocations: 253.1 kB / 478 MB, free: 6.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.294e-05/0.1037, allocations: 71.42 kB / 478.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.1037, allocations: 4 kB / 478.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.1038, allocations: 7.938 kB / 478.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1039, allocations: 27.94 kB / 478.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.1039, allocations: 7.984 kB / 478.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.759e-05/0.104, allocations: 19.84 kB / 478.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.104, allocations: 19.94 kB / 478.2 MB, free: 6.566 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.0001918/0.1042, allocations: 207.3 kB / 478.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.1044, allocations: 115.2 kB / 478.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.3e-05/0.1044, allocations: 12.84 kB / 478.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.1044, allocations: 12.12 kB / 478.5 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1044, allocations: 0 / 478.5 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.954e-06/0.1045, allocations: 7.922 kB / 478.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.1047, allocations: 193.5 kB / 478.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1047, allocations: 0 / 478.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.169e-05/0.1047, allocations: 4 kB / 478.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1047, allocations: 0 / 478.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.1047, allocations: 0 / 478.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.1047, allocations: 15.88 kB / 478.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1048, allocations: 0 / 478.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003629/0.1051, allocations: 319.7 kB / 479.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.1053, allocations: 89.02 kB / 479.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.1053, allocations: 4 kB / 479.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.14e-05/0.1054, allocations: 0 / 479.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.322e-05/0.1054, allocations: 8 kB / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.1054, allocations: 8 kB / 479.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.006e-05/0.1055, allocations: 91.27 kB / 479.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1055, allocations: 0 / 479.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.1058, allocations: 27.94 kB / 479.3 MB, free: 5.352 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.001101/0.1069, allocations: 1.034 MB / 480.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003413/0.1073, allocations: 239.5 kB / 480.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1073, allocations: 0 / 480.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.958e-05/0.1074, allocations: 134.9 kB / 480.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/0.1078, allocations: 72 kB / 480.8 MB, free: 3.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002008/0.1098, allocations: 1.916 MB / 482.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.1101, allocations: 0.7193 MB / 483.4 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.858e-05/0.1102, allocations: 16.88 kB / 483.4 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.1102, allocations: 35.42 kB / 483.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1102, allocations: 0 / 483.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.1335, allocations: 3.032 MB / 486.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.427/7.56, allocations: 7.797 kB / 486.5 MB, free: 14.04 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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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_ClockedBlocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)