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.00121/0.00121, allocations: 110.7 kB / 16.46 MB, free: 6.496 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.001226/0.001226, allocations: 189.5 kB / 17.39 MB, free: 5.688 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.38/1.38, 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.05978/0.05978, allocations: 12.05 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 63.89 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09334/0.09518, allocations: 52.32 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003834/0.09904, allocations: 2.238 MB / 474.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002965/0.09936, allocations: 127.5 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.832e-05/0.09944, allocations: 4 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.0996, allocations: 19.81 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.553e-05/0.09969, allocations: 11.92 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.0999, allocations: 47.83 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.1001, allocations: 79.77 kB / 474.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.1002, allocations: 32.19 kB / 474.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.894e-05/0.1003, allocations: 31.86 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.849e-05/0.1003, allocations: 31.84 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.1004, allocations: 8 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.847e-05/0.1004, allocations: 23.98 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.795e-05/0.1005, allocations: 23.92 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.754e-05/0.1006, allocations: 39.73 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.1008, allocations: 123.7 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1008, allocations: 0 / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1008, allocations: 0 / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1008, allocations: 4 kB / 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.0005238/0.1014, allocations: 450.4 kB / 475.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1014, allocations: 8.031 kB / 475.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.854e-05/0.1015, allocations: 46.73 kB / 475.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.1015, allocations: 12.84 kB / 475.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.1018, allocations: 196.2 kB / 475.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.1018, allocations: 4.375 kB / 475.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.1019, allocations: 8.375 kB / 475.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004851/0.1023, allocations: 277 kB / 475.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1024, allocations: 4 kB / 475.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.1024, allocations: 3.984 kB / 475.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.1024, allocations: 4 kB / 475.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.1026, allocations: 67.95 kB / 475.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005224/0.1031, allocations: 309.6 kB / 476.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.1033, allocations: 129.4 kB / 476.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.1034, allocations: 65.83 kB / 476.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.1035, allocations: 8 kB / 476.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.1035, allocations: 34.55 kB / 476.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.773e-06/0.1035, allocations: 0 / 476.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005569/0.1041, allocations: 254.7 kB / 476.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1042, allocations: 144.5 kB / 476.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.1043, allocations: 121.9 kB / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.1044, allocations: 33.64 kB / 476.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.577e-05/0.1045, allocations: 96.45 kB / 476.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.1045, allocations: 15.94 kB / 477 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.272e-05/0.1046, allocations: 37.72 kB / 477 MB, free: 7.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1047, allocations: 326.8 kB / 477.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.205e-05/0.1048, allocations: 31.97 kB / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.105, allocations: 153.1 kB / 477.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.1053, allocations: 311.7 kB / 477.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/0.1053, allocations: 4 kB / 477.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003648/0.1057, allocations: 260.7 kB / 478.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/0.1058, allocations: 59.41 kB / 478.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1058, allocations: 7.984 kB / 478.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.1058, allocations: 7.938 kB / 478.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.1059, allocations: 23.94 kB / 478.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.1059, allocations: 12.55 kB / 478.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.078e-05/0.106, allocations: 23.84 kB / 478.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.1061, allocations: 12 kB / 478.2 MB, free: 6.535 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.0001923/0.1063, allocations: 203.4 kB / 478.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.1064, allocations: 119.1 kB / 478.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.139e-05/0.1065, allocations: 12.84 kB / 478.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.1065, allocations: 11.94 kB / 478.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1065, allocations: 0 / 478.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.1065, allocations: 7.984 kB / 478.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.1067, allocations: 193.6 kB / 478.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.1067, allocations: 0 / 478.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.261e-05/0.1068, allocations: 7.938 kB / 478.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1068, allocations: 0 / 478.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.1068, allocations: 4 kB / 478.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.1068, allocations: 3.938 kB / 478.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1068, allocations: 0 / 478.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.1072, allocations: 323.6 kB / 479.1 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.599e-05/0.1072, allocations: 89.02 kB / 479.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.1073, allocations: 8 kB / 479.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.447e-05/0.1073, allocations: 0 / 479.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.1073, allocations: 8 kB / 479.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.1074, allocations: 4 kB / 479.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.618e-05/0.1074, allocations: 91.27 kB / 479.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1074, allocations: 0 / 479.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1077, allocations: 31.94 kB / 479.3 MB, free: 5.316 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.001308/0.1091, allocations: 1.03 MB / 480.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003996/0.1095, allocations: 242.7 kB / 480.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1095, allocations: 0 / 480.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.1096, allocations: 126.8 kB / 480.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.11, allocations: 79.88 kB / 480.8 MB, free: 3.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.112, allocations: 1.913 MB / 482.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.1124, allocations: 0.7193 MB / 483.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.026e-05/0.1125, allocations: 12.88 kB / 483.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.748e-05/0.1125, allocations: 39.36 kB / 483.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1125, allocations: 0 / 483.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.1347, allocations: 3.04 MB / 486.5 MB, free: 14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/7.919, 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)