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.001113/0.001113, allocations: 103.9 kB / 16.03 MB, free: 6.348 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.001099/0.001099, allocations: 197.3 kB / 16.95 MB, free: 6.172 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.171/1.171, allocations: 222.9 MB / 240.6 MB, free: 13.71 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.05103/0.05103, allocations: 12.04 MB / 302.8 MB, free: 3.133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 63.89 kB / 366.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1663, allocations: 52.32 MB / 418.4 MB, free: 21.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002599/0.169, allocations: 2.283 MB / 420.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001949/0.1692, allocations: 119.6 kB / 420.8 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.371e-05/0.1692, allocations: 7.656 kB / 420.8 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.1694, allocations: 27.84 kB / 420.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.233e-05/0.1694, allocations: 0 / 420.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.1696, allocations: 43.89 kB / 420.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.1697, allocations: 75.78 kB / 420.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.858e-05/0.1698, allocations: 20.23 kB / 421 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.082e-05/0.1699, allocations: 39.83 kB / 421 MB, free: 18.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.495e-05/0.1699, allocations: 27.86 kB / 421 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/0.1699, allocations: 8 kB / 421 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.928e-05/0.17, allocations: 29.55 kB / 421.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.827e-05/0.17, allocations: 15.94 kB / 421.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.406e-05/0.1701, allocations: 47.72 kB / 421.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.1702, allocations: 107.6 kB / 421.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1702, allocations: 3.531 kB / 421.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1702, allocations: 0 / 421.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.309e-06/0.1702, allocations: 4 kB / 421.2 MB, free: 18.39 MB / 302.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.0002903/0.1705, allocations: 441 kB / 421.7 MB, free: 17.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.895e-05/0.1705, allocations: 11.97 kB / 421.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.798e-05/0.1706, allocations: 42.73 kB / 421.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.1706, allocations: 16.75 kB / 421.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.1707, allocations: 200.1 kB / 421.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.1708, allocations: 5.688 kB / 421.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.1708, allocations: 12.38 kB / 421.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.1711, allocations: 272.5 kB / 422.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.1711, allocations: 3.984 kB / 422.2 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.1711, allocations: 0 / 422.2 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.1711, allocations: 8 kB / 422.2 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.405e-05/0.1712, allocations: 67.91 kB / 422.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002298/0.1715, allocations: 297.6 kB / 422.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.1716, allocations: 129.4 kB / 422.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.083e-05/0.1717, allocations: 73.77 kB / 422.8 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.1717, allocations: 3.938 kB / 422.8 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.317e-05/0.1717, allocations: 38.55 kB / 422.8 MB, free: 16.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.1717, allocations: 0 / 422.8 MB, free: 16.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003067/0.172, allocations: 255.5 kB / 423.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.1721, allocations: 140.5 kB / 423.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.706e-05/0.1721, allocations: 121.8 kB / 423.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.1722, allocations: 33.7 kB / 423.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.628e-05/0.1722, allocations: 92.5 kB / 423.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.1722, allocations: 23.73 kB / 423.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.1723, allocations: 41.7 kB / 423.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.528e-05/0.1723, allocations: 322.8 kB / 423.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.819e-05/0.1723, allocations: 31.97 kB / 423.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.38e-05/0.1724, allocations: 160.3 kB / 424 MB, free: 15.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.1726, allocations: 303.7 kB / 424.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1726, allocations: 0 / 424.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002286/0.1728, allocations: 252.6 kB / 424.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.1728, allocations: 63.39 kB / 424.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1728, allocations: 4 kB / 424.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1729, allocations: 11.94 kB / 424.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.319e-05/0.1729, allocations: 23.94 kB / 424.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.173, allocations: 11.92 kB / 424.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.321e-05/0.173, allocations: 16.41 kB / 424.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.173, allocations: 16 kB / 424.7 MB, free: 14.45 MB / 302.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.0001107/0.1732, allocations: 207.4 kB / 424.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.1733, allocations: 121.5 kB / 425 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.1733, allocations: 12.84 kB / 425 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.1733, allocations: 11.94 kB / 425 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1733, allocations: 0 / 425 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1733, allocations: 7.984 kB / 425.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.1735, allocations: 189.5 kB / 425.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1735, allocations: 4.188 kB / 425.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.045e-05/0.1735, allocations: 0 / 425.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1735, allocations: 7.875 kB / 425.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.1735, allocations: 4 kB / 425.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1735, allocations: 3.938 kB / 425.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1735, allocations: 4 kB / 425.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.1737, allocations: 316.7 kB / 425.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.86e-05/0.1737, allocations: 96.89 kB / 425.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.851e-05/0.1738, allocations: 4 kB / 425.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.179e-05/0.1738, allocations: 4 kB / 425.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.014e-05/0.1738, allocations: 8 kB / 425.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.1739, allocations: 0 / 425.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.69e-05/0.1739, allocations: 95.27 kB / 425.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1739, allocations: 0 / 425.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000271/0.1742, allocations: 28 kB / 425.8 MB, free: 13.21 MB / 302.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.0006425/0.1748, allocations: 1.023 MB / 426.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002208/0.175, allocations: 255 kB / 427.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1751, allocations: 0 / 427.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.431e-05/0.1751, allocations: 122.8 kB / 427.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.1754, allocations: 83.88 kB / 427.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.1766, allocations: 1.938 MB / 429.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.524e-05/0.1767, allocations: 0.7158 MB / 429.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.277e-05/0.1767, allocations: 16.88 kB / 429.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.16e-05/0.1768, allocations: 27.42 kB / 430 MB, free: 8.789 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1768, allocations: 4 kB / 430 MB, free: 8.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0108/0.1876, allocations: 2.931 MB / 432.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.1878, allocations: 284.4 kB / 433.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.715/1.902, allocations: 0 / 433.2 MB, free: 5.633 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)