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.001191/0.001191, allocations: 104.8 kB / 16.45 MB, free: 6.445 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.001237/0.001237, allocations: 186.4 kB / 17.38 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.339/1.339, allocations: 222.9 MB / 241.1 MB, free: 15.09 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.06018/0.06018, allocations: 12.04 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 67.89 kB / 419.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08599/0.08775, allocations: 52.32 MB / 471.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003681/0.09147, allocations: 2.258 MB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003541/0.09185, allocations: 163.5 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.522e-05/0.09192, allocations: 4 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.09207, allocations: 23.86 kB / 474.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.09225, allocations: 43.81 kB / 474.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.09244, allocations: 43.89 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.0926, allocations: 83.75 kB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.09272, allocations: 20.22 kB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.695e-05/0.09278, allocations: 35.84 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.62e-05/0.09284, allocations: 35.78 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.09287, allocations: 8 kB / 474.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.09307, allocations: 131.9 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.436e-05/0.0931, allocations: 11.94 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.683e-05/0.09315, allocations: 31.8 kB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.09342, allocations: 155.7 kB / 474.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.09343, allocations: 0 / 474.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09344, allocations: 4 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.09344, allocations: 0 / 474.9 MB, free: 10.3 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.0005098/0.09396, allocations: 442.4 kB / 475.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.094, allocations: 8.031 kB / 475.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.89e-05/0.09404, allocations: 38.75 kB / 475.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.09408, allocations: 12.88 kB / 475.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002774/0.09437, allocations: 200.2 kB / 475.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.09439, allocations: 8.375 kB / 475.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.09441, allocations: 8.375 kB / 475.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.09472, allocations: 153.5 kB / 475.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.09474, allocations: 7.922 kB / 475.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.09475, allocations: 0 / 475.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.09477, allocations: 8 kB / 475.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.987e-05/0.09485, allocations: 27.98 kB / 475.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.09528, allocations: 305.6 kB / 476.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.09549, allocations: 146.3 kB / 476.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.762e-05/0.09557, allocations: 49.72 kB / 476.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.0956, allocations: 3.938 kB / 476.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.09563, allocations: 30.56 kB / 476.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.09563, allocations: 0 / 476.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003286/0.09597, allocations: 165 kB / 476.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.129e-05/0.09606, allocations: 136.5 kB / 476.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.09619, allocations: 137.4 kB / 476.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.09621, allocations: 29.7 kB / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.024e-05/0.09628, allocations: 96.08 kB / 476.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.0963, allocations: 11.89 kB / 476.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.09635, allocations: 33.7 kB / 476.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.09649, allocations: 318.8 kB / 477.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.166e-05/0.09653, allocations: 15.98 kB / 477.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.942e-05/0.09661, allocations: 61.94 kB / 477.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.09676, allocations: 180.7 kB / 477.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.09677, allocations: 0 / 477.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002066/0.09698, allocations: 156.9 kB / 477.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.09704, allocations: 65.73 kB / 477.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.09705, allocations: 0 / 477.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.09707, allocations: 4 kB / 477.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.432e-05/0.09712, allocations: 7.938 kB / 477.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.09713, allocations: 4.219 kB / 477.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.079e-05/0.09718, allocations: 11.95 kB / 477.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.09719, allocations: 4 kB / 477.7 MB, free: 7.062 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 0.000137/0.09734, allocations: 181.2 kB / 477.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.09745, allocations: 61.59 kB / 478 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.0975, allocations: 12.3 kB / 478 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.09751, allocations: 4 kB / 478 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.09751, allocations: 0 / 478 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.09752, allocations: 0 / 478 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.09772, allocations: 189.6 kB / 478.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.09773, allocations: 0 / 478.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.331e-05/0.09776, allocations: 7.938 kB / 478.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.09776, allocations: 464 / 478.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.09778, allocations: 4 kB / 478.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.09779, allocations: 4 kB / 478.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.0978, allocations: 3.984 kB / 478.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.09808, allocations: 267.6 kB / 478.5 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.062e-05/0.09814, allocations: 92.98 kB / 478.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.09816, allocations: 4 kB / 478.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.965e-05/0.09822, allocations: 0 / 478.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.638e-05/0.09825, allocations: 8 kB / 478.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.09827, allocations: 4 kB / 478.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.092e-05/0.09834, allocations: 99.27 kB / 478.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09835, allocations: 0 / 478.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000272/0.09862, allocations: 31.98 kB / 478.7 MB, free: 5.98 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.001189/0.09982, allocations: 0.9819 MB / 479.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002287/0.1001, allocations: 162.7 kB / 479.8 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1001, allocations: 4.438 kB / 479.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.633e-05/0.1002, allocations: 122.8 kB / 480 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.1005, allocations: 30.97 kB / 480 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.1021, allocations: 1.553 MB / 481.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.1025, allocations: 0.7079 MB / 482.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.931e-05/0.1026, allocations: 12.66 kB / 482.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.584e-05/0.1026, allocations: 23.44 kB / 482.3 MB, free: 2.219 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1026, allocations: 0 / 482.3 MB, free: 2.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.1268, allocations: 3.164 MB / 485.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.024/8.15, allocations: 19.62 kB / 485.5 MB, free: 15.18 MB / 366.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)