Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.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.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",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.004636/0.004636, allocations: 93.11 kB / 15.91 MB, free: 6.277 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.0009243/0.0009243, allocations: 199.1 kB / 16.84 MB, free: 6.191 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.225/1.225, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1512/0.1512, allocations: 12.01 MB / 302.7 MB, free: 0.9922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 60.09 kB / 365.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09309, allocations: 52.33 MB / 418.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003729/0.09685, allocations: 2.279 MB / 420.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003386/0.09721, allocations: 191.4 kB / 420.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.504e-05/0.09727, allocations: 11.94 kB / 420.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.09742, allocations: 23.84 kB / 420.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.09756, allocations: 27.89 kB / 420.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.09772, allocations: 39.91 kB / 420.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.81e-05/0.09783, allocations: 63.84 kB / 420.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.09794, allocations: 28.2 kB / 420.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.563e-05/0.098, allocations: 27.8 kB / 420.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.237e-05/0.09805, allocations: 39.78 kB / 420.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.09808, allocations: 0 / 420.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.09825, allocations: 131.9 kB / 421.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.251e-05/0.09828, allocations: 15.98 kB / 421.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.191e-05/0.09834, allocations: 31.73 kB / 421.1 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.09855, allocations: 135.7 kB / 421.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.09856, allocations: 0 / 421.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.09857, allocations: 0 / 421.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.09858, allocations: 0 / 421.2 MB, free: 2.547 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005022/0.09909, allocations: 434.9 kB / 421.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.09913, allocations: 12.03 kB / 421.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.09917, allocations: 38.73 kB / 421.7 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.09922, allocations: 12.84 kB / 421.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.09944, allocations: 200.1 kB / 421.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.09947, allocations: 12.38 kB / 421.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.09948, allocations: 4.375 kB / 421.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.09978, allocations: 156.6 kB / 422.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/0.0998, allocations: 7.938 kB / 422.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.09982, allocations: 0 / 422.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.09983, allocations: 4 kB / 422.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.823e-05/0.09991, allocations: 28 kB / 422.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003482/0.1003, allocations: 297.5 kB / 422.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.1005, allocations: 158.3 kB / 422.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.613e-05/0.1005, allocations: 37.78 kB / 422.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.1006, allocations: 7.875 kB / 422.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.1006, allocations: 34.56 kB / 422.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.1006, allocations: 3.938 kB / 422.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003215/0.1009, allocations: 164.9 kB / 422.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/0.101, allocations: 144.5 kB / 423 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.1011, allocations: 134.1 kB / 423.1 MB, free: 412 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.1012, allocations: 25.7 kB / 423.1 MB, free: 380 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.623e-05/0.1012, allocations: 100 kB / 423.2 MB, free: 276 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.1012, allocations: 7.891 kB / 423.2 MB, free: 268 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.192e-05/0.1013, allocations: 29.72 kB / 423.2 MB, free: 232 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1591/0.2604, allocations: 322.6 kB / 423.6 MB, free: 41.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.77e-05/0.2605, allocations: 7.125 kB / 423.6 MB, free: 41.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.99e-05/0.2606, allocations: 55.61 kB / 423.6 MB, free: 41.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001076/0.2607, allocations: 180.8 kB / 423.8 MB, free: 41.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2607, allocations: 3.219 kB / 423.8 MB, free: 41.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002017/0.2609, allocations: 156.2 kB / 424 MB, free: 41.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/0.261, allocations: 59.84 kB / 424 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.261, allocations: 2.125 kB / 424 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.261, allocations: 2.688 kB / 424 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.163e-05/0.2611, allocations: 12.06 kB / 424 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2611, allocations: 3.781 kB / 424 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.901e-05/0.2611, allocations: 8.547 kB / 424 MB, free: 41.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.2611, allocations: 5.656 kB / 424 MB, free: 41.28 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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 9.173e-05/0.2612, allocations: 182.8 kB / 424.2 MB, free: 41.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.715e-05/0.2613, allocations: 66.25 kB / 424.3 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.2614, allocations: 10.91 kB / 424.3 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2614, allocations: 5.438 kB / 424.3 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2614, allocations: 2.281 kB / 424.3 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2614, allocations: 1.656 kB / 424.3 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.2616, allocations: 181.1 kB / 424.5 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2616, allocations: 0.6875 kB / 424.5 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.297e-05/0.2616, allocations: 6.312 kB / 424.5 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2616, allocations: 6.766 kB / 424.5 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.2616, allocations: 1.062 kB / 424.5 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.2616, allocations: 6.969 kB / 424.5 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2616, allocations: 0 / 424.5 MB, free: 40.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.2618, allocations: 256.8 kB / 424.8 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.072e-05/0.2619, allocations: 86.78 kB / 424.8 MB, free: 40.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.2619, allocations: 3.094 kB / 424.8 MB, free: 40.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.5e-05/0.2619, allocations: 6.969 kB / 424.9 MB, free: 40.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.262, allocations: 9.469 kB / 424.9 MB, free: 40.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.262, allocations: 0 / 424.9 MB, free: 40.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.389e-05/0.262, allocations: 104.7 kB / 425 MB, free: 40.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.262, allocations: 2.688 kB / 425 MB, free: 40.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002873/0.2623, allocations: 28.58 kB / 425 MB, free: 40.5 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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0008413/0.2632, allocations: 0.9724 MB / 426 MB, free: 39.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001827/0.2634, allocations: 169.4 kB / 426.1 MB, free: 39.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2634, allocations: 1.125 kB / 426.1 MB, free: 39.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.057e-05/0.2634, allocations: 123.7 kB / 426.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.2637, allocations: 35.53 kB / 426.3 MB, free: 39.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.2649, allocations: 1.59 MB / 427.9 MB, free: 38.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.2651, allocations: 0.6936 MB / 428.6 MB, free: 37.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.2652, allocations: 16.5 kB / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.2652, allocations: 26.19 kB / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of SimCode: time 1.353e-06/0.2652, allocations: 3.094 kB / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0117/0.277, allocations: 2.996 MB / 431.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.2771, allocations: 276.8 kB / 431.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.03, allocations: 2.844 kB / 431.9 MB, free: 36.64 MB / 350.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)