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.001055/0.001055, allocations: 101.8 kB / 16.31 MB, free: 6.359 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.001181/0.001181, allocations: 184.7 kB / 17.24 MB, free: 5.879 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.245/1.245, allocations: 222.9 MB / 240.9 MB, free: 15.17 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.05355/0.05355, allocations: 12.05 MB / 303.1 MB, free: 3.184 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.91 kB / 366.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1736, allocations: 52.33 MB / 418.9 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002904/0.1766, allocations: 2.228 MB / 421.1 MB, free: 18.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002163/0.1768, allocations: 131.5 kB / 421.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.546e-05/0.1769, allocations: 0 / 421.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.177, allocations: 23.86 kB / 421.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.694e-05/0.1771, allocations: 11.86 kB / 421.3 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.1773, allocations: 43.95 kB / 421.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.1774, allocations: 75.78 kB / 421.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.789e-05/0.1775, allocations: 36.19 kB / 421.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.49e-05/0.1775, allocations: 35.86 kB / 421.5 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.95e-05/0.1776, allocations: 23.86 kB / 421.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.1776, allocations: 4 kB / 421.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.693e-05/0.1777, allocations: 27.92 kB / 421.5 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.477e-05/0.1777, allocations: 27.91 kB / 421.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.996e-05/0.1778, allocations: 39.75 kB / 421.6 MB, free: 18.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.1779, allocations: 107.6 kB / 421.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1779, allocations: 4 kB / 421.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.178, allocations: 0 / 421.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.178, allocations: 0 / 421.7 MB, free: 18.27 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.0003382/0.1783, allocations: 448.9 kB / 422.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.1783, allocations: 12.03 kB / 422.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.129e-05/0.1784, allocations: 46.67 kB / 422.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.438e-05/0.1784, allocations: 12.75 kB / 422.2 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.1786, allocations: 200.1 kB / 422.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1786, allocations: 4.375 kB / 422.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.62e-05/0.1786, allocations: 12.38 kB / 422.4 MB, free: 17.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.179, allocations: 270.5 kB / 422.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.179, allocations: 0 / 422.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.179, allocations: 4 kB / 422.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.179, allocations: 8 kB / 422.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.952e-05/0.1791, allocations: 59.91 kB / 422.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002787/0.1794, allocations: 305.6 kB / 423.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.1795, allocations: 129.4 kB / 423.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.732e-05/0.1796, allocations: 77.81 kB / 423.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.135e-06/0.1796, allocations: 0 / 423.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.1797, allocations: 42.42 kB / 423.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.263e-06/0.1797, allocations: 0 / 423.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.000332/0.18, allocations: 255.1 kB / 423.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.1801, allocations: 140.5 kB / 423.7 MB, free: 16.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.312e-05/0.1801, allocations: 125.7 kB / 423.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.1801, allocations: 29.7 kB / 423.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.1802, allocations: 88.52 kB / 423.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.1802, allocations: 23.73 kB / 423.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.1802, allocations: 41.7 kB / 424 MB, free: 15.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.708e-05/0.1803, allocations: 326.8 kB / 424.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.017e-05/0.1803, allocations: 31.98 kB / 424.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.543e-05/0.1804, allocations: 154.4 kB / 424.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.1806, allocations: 303.7 kB / 424.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1806, allocations: 4 kB / 424.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002358/0.1808, allocations: 252.5 kB / 425 MB, free: 14.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.1809, allocations: 63.39 kB / 425.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1809, allocations: 4 kB / 425.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1809, allocations: 11.94 kB / 425.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.584e-05/0.181, allocations: 24.55 kB / 425.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.181, allocations: 12 kB / 425.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.291e-05/0.1811, allocations: 15.91 kB / 425.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.1811, allocations: 8 kB / 425.2 MB, free: 14.32 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.0001161/0.1812, allocations: 203.4 kB / 425.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.1813, allocations: 125.4 kB / 425.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.344e-05/0.1813, allocations: 16.84 kB / 425.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.1814, allocations: 11.92 kB / 425.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1814, allocations: 4 kB / 425.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1814, allocations: 8 kB / 425.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.1815, allocations: 185.5 kB / 425.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1815, allocations: 0 / 425.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.023e-05/0.1815, allocations: 4 kB / 425.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1815, allocations: 0 / 425.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1815, allocations: 4 kB / 425.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1815, allocations: 8.109 kB / 425.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1815, allocations: 0 / 425.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.1818, allocations: 336.4 kB / 426.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.109e-05/0.1818, allocations: 92.89 kB / 426.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.1818, allocations: 4 kB / 426.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.282e-05/0.1819, allocations: 4 kB / 426.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-05/0.1819, allocations: 8.125 kB / 426.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.1819, allocations: 4 kB / 426.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.028e-05/0.182, allocations: 95.31 kB / 426.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.182, allocations: 0 / 426.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.1823, allocations: 28 kB / 426.3 MB, free: 13.08 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.0007038/0.183, allocations: 1.019 MB / 427.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.1832, allocations: 254.6 kB / 427.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1832, allocations: 0 / 427.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.683e-05/0.1833, allocations: 122.8 kB / 427.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.1836, allocations: 81.25 kB / 427.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.1848, allocations: 1.911 MB / 429.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.1849, allocations: 0.7156 MB / 430.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.986e-05/0.1849, allocations: 16.86 kB / 430.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.503e-05/0.185, allocations: 31.42 kB / 430.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.185, allocations: 0 / 430.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01664/0.2016, allocations: 2.956 MB / 433.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.178/7.38, allocations: 7.797 kB / 433.4 MB, free: 5.848 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)