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.00128/0.00128, allocations: 102.7 kB / 16.45 MB, free: 6.441 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.001161/0.001161, allocations: 189.5 kB / 17.39 MB, free: 5.684 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.264/1.264, 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.05431/0.05431, allocations: 12.05 MB / 303.3 MB, free: 3.078 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 67.89 kB / 419.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07697/0.07808, allocations: 52.32 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003136/0.08124, allocations: 2.238 MB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002451/0.08151, allocations: 131.5 kB / 474.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.855e-05/0.08158, allocations: 0 / 474.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.08172, allocations: 23.86 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.939e-05/0.0818, allocations: 3.938 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.08199, allocations: 47.88 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.08213, allocations: 83.77 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.315e-05/0.08223, allocations: 20.22 kB / 474.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.984e-05/0.08229, allocations: 35.86 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.568e-05/0.08234, allocations: 35.83 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.08237, allocations: 8 kB / 474.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.08243, allocations: 23.98 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.08249, allocations: 19.88 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.068e-05/0.08255, allocations: 39.73 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001867/0.08274, allocations: 119.8 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.08276, allocations: 0 / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.08276, allocations: 0 / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.08277, allocations: 0 / 474.7 MB, free: 10.5 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.0004527/0.08323, allocations: 454.4 kB / 475.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.08327, allocations: 12.03 kB / 475.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.639e-05/0.08334, allocations: 42.73 kB / 475.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.862e-05/0.08339, allocations: 16.84 kB / 475.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.08365, allocations: 196.2 kB / 475.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.08367, allocations: 4.375 kB / 475.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.08369, allocations: 12.38 kB / 475.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004/0.0841, allocations: 285.2 kB / 475.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.08412, allocations: 0 / 475.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.08413, allocations: 0 / 475.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.08416, allocations: 8 kB / 475.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/0.08427, allocations: 63.91 kB / 475.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003529/0.08463, allocations: 305.6 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.0848, allocations: 125.4 kB / 476.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.08492, allocations: 85.81 kB / 476.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.08493, allocations: 3.938 kB / 476.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.08496, allocations: 30.56 kB / 476.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.08496, allocations: 0 / 476.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003938/0.08536, allocations: 254.6 kB / 476.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.08545, allocations: 136.5 kB / 476.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.036e-05/0.08555, allocations: 129.8 kB / 476.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.08558, allocations: 29.7 kB / 476.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/0.08564, allocations: 92.47 kB / 476.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.08567, allocations: 15.94 kB / 476.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.586e-05/0.08573, allocations: 41.7 kB / 477 MB, free: 7.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.08584, allocations: 326.8 kB / 477.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.749e-05/0.0859, allocations: 27.98 kB / 477.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.08604, allocations: 157.1 kB / 477.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.08627, allocations: 307.7 kB / 477.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.08628, allocations: 0 / 477.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002941/0.08658, allocations: 256.8 kB / 478 MB, free: 6.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.588e-05/0.08663, allocations: 63.39 kB / 478.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.08665, allocations: 4 kB / 478.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.08667, allocations: 11.94 kB / 478.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.2e-05/0.08676, allocations: 27.92 kB / 478.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.08678, allocations: 11.94 kB / 478.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.164e-05/0.08686, allocations: 19.84 kB / 478.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.08689, allocations: 16.33 kB / 478.2 MB, free: 6.531 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.0001772/0.08707, allocations: 203.5 kB / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.08723, allocations: 123.5 kB / 478.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.527e-05/0.08726, allocations: 16.84 kB / 478.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.08728, allocations: 11.92 kB / 478.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.08729, allocations: 4.188 kB / 478.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.0873, allocations: 0 / 478.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.08748, allocations: 189.5 kB / 478.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.08749, allocations: 4 kB / 478.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.029e-05/0.08751, allocations: 7.938 kB / 478.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.08752, allocations: 0 / 478.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.08753, allocations: 4 kB / 478.7 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.08754, allocations: 7.875 kB / 478.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.08755, allocations: 0 / 478.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.08783, allocations: 323.7 kB / 479.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.08789, allocations: 89.02 kB / 479.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.08792, allocations: 4 kB / 479.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.446e-05/0.08799, allocations: 4 kB / 479.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.08802, allocations: 4 kB / 479.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.08803, allocations: 7.984 kB / 479.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.83e-05/0.08808, allocations: 95.77 kB / 479.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08809, allocations: 0 / 479.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.0884, allocations: 31.92 kB / 479.3 MB, free: 5.301 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.000949/0.08935, allocations: 1.028 MB / 480.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000286/0.08965, allocations: 243.4 kB / 480.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.08966, allocations: 3.938 kB / 480.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.885e-05/0.08974, allocations: 118.8 kB / 480.7 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.09008, allocations: 83.92 kB / 480.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.0917, allocations: 1.913 MB / 482.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.09195, allocations: 0.7154 MB / 483.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.485e-05/0.09202, allocations: 16.88 kB / 483.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.09207, allocations: 35.36 kB / 483.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09207, allocations: 0 / 483.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.1103, allocations: 3.033 MB / 486.5 MB, free: 14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.692, allocations: 7.797 kB / 486.5 MB, free: 14 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)